Page 1 of 1

Refresh of Display Object

PostPosted: Sat Mar 16, 2019 4:59 pm
by Janusz
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 .... ?

Re: Refresh of Display Object

PostPosted: Mon Mar 18, 2019 4:15 pm
by kev1n
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

Re: Refresh of Display Object

PostPosted: Tue Mar 19, 2019 4:28 am
by Janusz
Thanks a lot. It works very well. :-)

Re: Refresh of Display Object

PostPosted: Fri Mar 22, 2019 11:02 am
by admin
.