06.10.2010, 13:05 | #1 |
Участник
|
axhelper: Strange behaviour when calling form
Источник: http://feedproxy.google.com/~r/AxHel...ling-form.html
============== I was building an extended search form for one of our customers. When called from one form everything worked fine, but when called from a second form my grid only contained one record… Exact same parameters, same menu item etc. When looking around I found that when the error occured, I was calling from a form which had same table (InventTable) as one of it’s main Data Sources. This is one of the non-documented features in AX, if same table exists in the Data Sources in both forms, AX tryes to link them together. To break this connection I had to call ClearDynaLinks() on the second form. Like below, in my search form’s init method. X++: void init() { .... InventTable_ds.query().dataSourceTable( tablenum(InventTable)).clearDynalinks(); }
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|