03 December 2013

Refreshing form's datasource without affecting cursor position / How to retain cursor position? in AX

WE can do in two ways

1.Just calling the Research method by passing true boolean value
MyTable_ds.research(true); // boolean value retain the cursor position
------------
2.you can use method setPosition() and getPosotion()
{
int position;
;
position= MyTable_ds.getPosition();
MyTable_ds.research();
MyTable_ds.setPosition(position);
}



Happy Daxing
Sunil

1 comment:

  1. Why the first parameter in research method (retainPosition = true) is not working as expected?

    ReplyDelete

Give me the commetns and solutions

Customer inbound custom service in D365 F&O with X++

  [DataContractAttribute] class GOD_CustomerCreateContract {     str                 accountNum;     // Optional; if blank, a number sequenc...