Interview Questions

Monday, May 12, 2014

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

 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);
 }

No comments:

Post a Comment