Refresh Parent Form after updating data in child form

HI Everyone,

I am updating parent table data in child form in LinkActive method.
But changes are not reflecting in parent form.
If i refresh parent form in child form’s LinkActive method(callerForm.DataSource().Refresh()) after updating records then parent form getting refreshed continuously.
This is bcos when parent form is refreshed it again cal LinkActive method where i am refreshing parent form.
So looping is happening in both forms.

I want to refresh my header form only once when i update records at child form’s link Active method.

Please help me out solve this issue.

Regards,

Rajendra

Hi,

try this, i hope it will help you,

void click()

{

FormRun fr;

MenuFunction mf;

Args args = new Args();

;

//super();

mf = new MenuFunction(menuitemdisplaystr(‘SalesTable’),MenuItemType::Display);

args.record(SalesLines);

fr = mf.create(args);

fr.run();

fr.wait(true);

SalesLine_ds.reread();

SalesTable_ds.research(true);

}

for ur reference, check the below link

http://dynamicsuser.net/forums/t/48033.aspx

Hi Rajendra,

you can simply use below code to refresh parent data source after updating your child data source.

FormDataSource fds;

;

fds = element.args().record().dataSource();

fds.research(true);

fds.refresh();

Regards,

Mehul Thacker

Exactly what I was looking for… Thanks!