I made a new form , add data source in it and put fields in grid .
after that I added this form as a form part in another form , there are doesn't same table but It has a relation where can I add this relation in form part and show data in grid refer to this loan item ?
Hi Menna, please try to call your method to refresh formPart from executeQuery method of main form's Data source.
I found the error , it can't find datasource because init method of form part doesn't call yet , when I call init in "setFactBoxesToRefresh" I get another error when I tried to get args.record() in init form part , it returns allocation record not loan item record .
How can I return loanitem record in args ?
Add the factBox buffer in the watch window and see if there is any value for DataSource method. Press F11 to go inside the DataSource method and debug the code.
Thanks,
Girish S.
Now I called "setFactBoxesToRefresh" method in run method of the form and "refreshFactBoxes" in active method in form DataSource but It still doesn't work and doesn't go to the condition .
I made all of this in extension of form and extension of datasource form .
"setFactBoxesToRefresh" method must be call in run method of the form.
"refreshFactBoxes" - you can call it on main form DataSource Write method.
Thanks,
Girish S.
I called this method in active() data source in main form (where I want to refresh the form part )
Did you call the setFactBoxesToRefresh method on form run method?
Thanks,
Girish S.
Hi Girish S , I add methods like PayrollEarningStatement , but it also doesn't work in refresh data source , when I debug it returns the right form part but doesn't see its data source .
it doesn't go to this condition
I have one form part in main form and one data source in this part form , I want to refresh data source of form part in main form
Hi Menna Allah Ahmed,
You can refer to the standard form PayrollEarningStatement. In the run method they will get all the form part and insert into List - In the separate method they will loop through all the form parts and call the research method.
Refer to the method setFactBoxesToRefresh - In this method they will get all the form part from FormRun and insert the parts into list variable.
Refer to the method refreshFactBoxes - This method will loop through all the form part and call the research method of the respective form part. - This refreshFactBoxes method will be called in many places.
Thanks,
Girish S.
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156