Refresh data (another existing record) in the current window

Questions related to using nuBuilder Forte.

Refresh data (another existing record) in the current window

Postby mariri » Mon Jan 13, 2020 7:04 pm

Hi guys !

In a form, there is an iframe which runs a browse form (this form is related to the same table that the parent form). I would like to refresh data of the parent form when I select a line in the browse into the iframe object.
I think I have to use the Javascript function "nuForm(string1, string2, string3, string4, string5)" (added in the custom code form of the iframe object) but with what should I replace the variable "string5" in the function ?
Indeed, the value 1 enables to open Form in the current Breadcrumb i.e into the iframe object but not in the parent form.

Thanks for ur help !
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm

Re: Refresh data (another existing record) in the current wi

Postby kev1n » Mon Jan 13, 2020 7:36 pm

Hi,

Try calling

Code: Select all
nuSearchAction(1)
kev1n
 
Posts: 411
Joined: Mon Oct 15, 2018 2:13 am

Re: Refresh data (another existing record) in the current wi

Postby mariri » Tue Jan 14, 2020 8:03 pm

kev1n wrote:Hi,

Try calling

Code: Select all
nuSearchAction(1)


This action update data in the iframe object and not in the main form.

Sorry, I may not have been clear. The main form displays the details of a client's last order. The iframe object runs a browse form displaying the customer's order history.
I would like the main form displays the details of the order previously selected in the iframe object.
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm

Re: Refresh data (another existing record) in the current wi

Postby kev1n » Tue Jan 14, 2020 9:18 pm

This will refresh the parent form, when this code is added to the (browse) form's Javascript field.

Code: Select all
function nuSelectBrowse(e) {
   parent.nuGetBreadcrumb();
}


https://wiki.nubuilder.net/nubuilderfor ... lectBrowse
Last edited by kev1n on Tue Jan 14, 2020 10:50 pm, edited 1 time in total.
kev1n
 
Posts: 411
Joined: Mon Oct 15, 2018 2:13 am

Re: Refresh data (another existing record) in the current wi

Postby mariri » Tue Jan 14, 2020 10:24 pm

Ok thanks ! :D
mariri
 
Posts: 42
Joined: Mon Sep 02, 2019 7:24 pm


Return to General



cron