Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Refresh of Display Object

Questions related to using nuBuilder Forte.
Locked
Janusz
nuBuilder Team
Posts: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 11 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: 4562
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 76 times
Been thanked: 528 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: 508
Joined: Fri Dec 28, 2018 1:41 pm
Location: Krakow, Poland
Has thanked: 11 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: 2829
Joined: Mon Jun 15, 2009 2:23 am
Been thanked: 30 times

Re: Refresh of Display Object

Unread post by admin »

.
Locked