AX 2012 - Send data from server class to form with TempDB
Views (2357)
If you try to send data from server class to form with TempDB by parameter you'll see no data will be came. You may select In Memory table or use linkPhysicalTableInstance method to link two TempDB table:
Class:
public static server void populateData(MyTempTable _tmp)
{
MyTempTable tmp;
...
...
tmp.linkPhysicalTableInstance(_tmp);
...
...
return;
}
Form:
MyClass::populateData(MyTempTable);
MyTempTable_DS.research();
MyTempTable_DS.refresh();
Class:
public static server void populateData(MyTempTable _tmp)
{
MyTempTable tmp;
...
...
tmp.linkPhysicalTableInstance(_tmp);
...
...
return;
}
Form:
MyClass::populateData(MyTempTable);
MyTempTable_DS.research();
MyTempTable_DS.refresh();
This was originally posted here.

Like
Report
*This post is locked for comments