Pages

Banner 468 x 60px

 

Wednesday, November 22, 2017

Refreshes the caller form datasource in x++

0 comments
Refreshes the caller form datasource in x++ :

Refreshes the caller form datasource from the calling form:

void clicked()
{
    Args    arg = new Args();
    FormRun formRun;   
    ;

    arg = new args(formstr(YourForm));
    arg.record(yourTable);
    arg.caller(this);
    formRun = classFactory.formRunClass(arg);
    formRun.init();
    formRun.run();
    formRun.wait();
    formRun.detach();
   
    YourTable_DS.reread();
    YourTable_DS.rereadReferenceDataSources();
    YourTable_DS.research(true);
}

1. reread() – Rereads the current record from the database
2. rereadReferenceDataSources() – Rereads the reference records of the current record from the database
3. research(true) – true parameter retains the current position of the dataSource cursor after researching

0 comments:

A financial dimension value is based on the LAND-00013 record and has been used on a transaction. You cannot delete the LAND-00013 record AX 2012

 A financial dimension value is based on the LAND-00013 record and has been used on a  transaction. You cannot delete the LAND-00013 record ...