25 Haziran 2014 Çarşamba

AX 2012 - Refresh form data

A Subroutine of you called refreshs data. Form's data doesn't refresh. To solve this issue you have to call first research and then refresh. Research doesn't broke your query filters and if you call it with true parameter it goes to current record after refresh:

    LedgerJournalTrans_DS.research(true);
    LedgerJournalTrans_DS.refresh();


If your subroutine is a SysOperation class and your screen doesn't refresh anyway, don't forget add this to your controller class:

 controller.parmExecutionMode(SysOperationExecutionMode::Asynchronous);

If you don't, your research and refresh methods run before your classes completed it's job.

Hiç yorum yok:

Yorum Gönder