//Add this Method in Parent Form
void Form_doRefresh()
{
;
{
;
NetBuildings_ds.reread(); // Parent Form and Child Form Datasource Name
NetBuildings_ds.executeQuery();
NetBuildings_ds.refresh();
NetBuildings_ds.executeQuery();
NetBuildings_ds.refresh();
NetUnitDetails_ds.reread();
NetUnitDetails_ds.executeQuery();
NetUnitDetails_ds.refresh();
}
NetUnitDetails_ds.executeQuery();
NetUnitDetails_ds.refresh();
}
//Add this Method in Child Form where you need to Refresh the Parent Form
public void close()
{
if(formHasMethod(element.args().caller(), identifierStr(Form_doRefresh)))//Form_doRefresh is Parent Method Name
{
element.args().caller().Form_doRefresh();
}
{
element.args().caller().Form_doRefresh();
}
super();
}
.................................................................................................................................................................
}
.................................................................................................................................................................
void bookrefresh()
{
}
{
}
In the child form, you can do this –
void bookRefresh()
{
FormRun callerForm = element.args().caller();
{
FormRun callerForm = element.args().caller();
if (callerForm)
{
if (callerForm.name() == formstr(
{
callerForm.bookRefresh();
}
}
}
{
if (callerForm.name() == formstr(
{
callerForm.bookRefresh();
}
}
}
No comments:
Post a Comment