Источник:
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();
}
Источник:
http://feedproxy.google.com/~r/AxHel...ling-form.html