Refresh of Display Object

Questions related to using nuBuilder Forte.

Refresh of Display Object

Postby Janusz » Sat Mar 16, 2019 4:59 pm

Hi,
On the edit form I have a display object which displays data form mySql based on value taken from one field on the form ex.:
Code: Select all
SELECT par_nr FROM parts WHERE par_sample='#his_num#' LIMIT 1

is it possible to refresh on open edit form just only the DISPLAY field when the source field (#his_num#) is updated.
I mean to use for example the onchange JS code or .... ?
Janusz
 
Posts: 260
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland

Re: Refresh of Display Object

Postby kev1n » Mon Mar 18, 2019 4:15 pm

You can't refresh a display object directly. You would have to write a PHP procedure to run the query and pass its result back to the form.

https://wiki.nubuilder.net/nubuilderfor ... nPHPHidden
kev1n
 
Posts: 364
Joined: Mon Oct 15, 2018 2:13 am

Re: Refresh of Display Object

Postby Janusz » Tue Mar 19, 2019 4:28 am

Thanks a lot. It works very well. :-)
Janusz
 
Posts: 260
Joined: Fri Dec 28, 2018 10:11 pm
Location: Krakow, Poland

Re: Refresh of Display Object

Postby admin » Fri Mar 22, 2019 11:02 am

.
admin
Site Admin
 
Posts: 3162
Joined: Mon Jun 15, 2009 9:53 am


Return to General