Tuesday, 6 October 2015

Need to refresh the datasource from one form to another form:

Need to refresh the datasource from one form to another form:


We need to refresh the data from one form to another form

FormB is opening from formA if I did any changes in formB and close that formB then what ever the field exist in formB is same exist in FormA after changing without I clicked refresh(F5) in formA it needs to get refresh
So I write like below


I written formB close method as like

void close()
{
    FormDataSource   msProdCaller;
    ;
   
    super();

    if (element.args().caller().name() == formStr(FormA))
    {

        msProdCaller = element.args().record().dataSource();
        if (msProdCaller)
        msProdCaller.research();

    }


}

No comments:

Post a Comment