Quantcast
Channel: AX Developer Forum
Viewing all articles
Browse latest Browse all 9880

AX Research Single Record

$
0
0

Fellow DAXers,

I have a parent form, and a child form.  Unlike the common reread/refresh or research scenario, I would like to upon close of the child form to only refresh a single record and not the entire recordset as this is on a very high volume table that has a lot of blocking on a good day.

The parent form has a button object, that upon clicked performs the following code:

void clicked()

{


    args            args;

    formRun         formRun;

    ;

    args =  new args();

    args.name(formstr(myChildForm));


    formRun =   classFactory.formRunClass(args);

    formRun.init();

    formRun.run();

    formRun.wait();


    //code for single-record refresh?


    super();

}

I have tried to use element.datasource().reread(); and refresh() however the single record is then blanked out...empty record in a set of records displayed.

Thanks all, any advice is greatly appreciated.


Viewing all articles
Browse latest Browse all 9880

Trending Articles