Manas
#1
Hello Friends…I am new in AX…I want to refresh my Table which is in Form 1 by clicking button on Form2 .
I Had tried…
Tablename.reread();
tablename_ds.refresh();
tablename.executeQuery();
iin init method of 1 st form…
so if you find any solution then let me know…
Hi,
The following code refresh the form A when you close the form B, you can try to adapt it to the clicked event of your button on form B:
public void close()
{
FormDataSource fds;
InventTable InventTable_ds;
super();
InventTable_ds = element.args().record();
if(InventTable_ds.isFormDataSource())
{
fds = InventTable_ds.dataSource();
if(fds)
{
fds.executeQuery();
}
}
}
hope it helps
Regards,
Thomas