Welcome to the nuBuilder Forums!

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

Refresh of Display Object

Questions related to using nuBuilder Forte.
Locked
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Refresh of Display Object

Unread post 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 .... ?
If you like nuBuilder, please leave a review on SourceForge
kev1n
nuBuilder Team
Posts: 4305
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 71 times
Been thanked: 446 times
Contact:

Re: Refresh of Display Object

Unread post 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
Janusz
nuBuilder Team
Posts: 506
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 8 times
Been thanked: 18 times

Re: Refresh of Display Object

Unread post by Janusz »

Thanks a lot. It works very well. :-)
If you like nuBuilder, please leave a review on SourceForge
admin
Site Admin
Posts: 2815
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 25 times

Re: Refresh of Display Object

Unread post by admin »

.
Locked