Page 1 of 1

Refresh of Display Object

Posted: Sat Mar 16, 2019 8:29 am
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

Posted: Mon Mar 18, 2019 7:45 am
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.cloud/ ... nPHPHidden

Re: Refresh of Display Object

Posted: Mon Mar 18, 2019 7:58 pm
by Janusz
Thanks a lot. It works very well. :-)

Re: Refresh of Display Object

Posted: Fri Mar 22, 2019 2:32 am
by admin
.