Welcome to the nuBuilder Forums!

Register and log in to access exclusive forums and content available only to registered users.

Refresh data (another existing record) in the current window

Questions related to using nuBuilder Forte.
Post Reply
mariri
Posts: 45
Joined: Mon Sep 02, 2019 11:54 am

Refresh data (another existing record) in the current window

Unread post by mariri »

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 !
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

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

Unread post by kev1n »

Hi,

Try calling

Code: Select all

nuSearchAction(1)
mariri
Posts: 45
Joined: Mon Sep 02, 2019 11:54 am

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

Unread post by mariri »

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.
kev1n
nuBuilder Team
Posts: 4307
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 448 times
Contact:

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

Unread post by kev1n »

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.cloud/ ... lectBrowse
Last edited by kev1n on Tue Jan 14, 2020 2:20 pm, edited 1 time in total.
mariri
Posts: 45
Joined: Mon Sep 02, 2019 11:54 am

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

Unread post by mariri »

Ok thanks ! :D
Post Reply