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.
refresh etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
refresh etiketine sahip kayıtlar gösteriliyor. Tüm kayıtları göster
25 Haziran 2014 Çarşamba
1 Aralık 2011 Perşembe
AXAPTA refreshing records
repairjournal_ds.research();
repairjournal_ds.refresh();
If you want to stay at current record:
repairjournal_ds.research(true);
repairjournal_ds.refresh();
repairjournal_ds.refresh();
If you want to stay at current record:
repairjournal_ds.research(true);
repairjournal_ds.refresh();
30 Kasım 2011 Çarşamba
AXAPTA modified method sometimes works twice
If combobox value selected with lookup and there is a data source refresh in method modified, modified method works twice. Another person faced this situation and unfortunately had not found a solution.
public void modified()
{
;
super();
info("111");
salesLine_DS.research(true);
salesLine_DS.refresh();
info("222");
}
I found a solution for that and applined mine. I put a variable at class declaration method and:
public void modified()
{
;
super();
if (hasChanged) //for twice call bugfix.
return;
hasChanged=true;
info("111");
salesLine_DS.research(true);
salesLine_DS.refresh();
hasChanged=false;
info("222");
}
public void modified()
{
;
super();
info("111");
salesLine_DS.research(true);
salesLine_DS.refresh();
info("222");
}
I found a solution for that and applined mine. I put a variable at class declaration method and:
public void modified()
{
;
super();
if (hasChanged) //for twice call bugfix.
return;
hasChanged=true;
info("111");
salesLine_DS.research(true);
salesLine_DS.refresh();
hasChanged=false;
info("222");
}
Kaydol:
Kayıtlar (Atom)