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

Ledger Voucher creation Framework and x++ code to create ledger voucher

 Please click her for MS reference file Below is the out of the box example reference and code. SalesInvoiceJournalPostSubBill_Extension-...