Page 1 of 1

Refresh data (another existing record) in the current window

Posted: Mon Jan 13, 2020 10:34 am
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 !

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

Posted: Mon Jan 13, 2020 11:06 am
by kev1n
Hi,

Try calling

Code: Select all

nuSearchAction(1)

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

Posted: Tue Jan 14, 2020 11:33 am
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.

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

Posted: Tue Jan 14, 2020 12:48 pm
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

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

Posted: Tue Jan 14, 2020 1:54 pm
by mariri
Ok thanks ! :D