Hi, based on the selection done on a lookup, I have to retrieve data from database related to the lookup selection, show it on screen, and use it on my form save. I guess I can use the Display object, but the query depends on the selection of the lookup and starts empty and can change and display must be refreshed.
There are some nuWay to do this? or just capture with javascript the lookup onchange, and fire a procedure with nuRunHiddenPhp+nuAddJavascript combo?
Welcome to the nuBuilder Forums!
Register and log in to access exclusive forums and content available only to registered users.
Register and log in to access exclusive forums and content available only to registered users.
Detect lookup onchange Topic is solved
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Detect lookup onchange
If the data is part of the lookup form, you can use nuSetFormValue().
Alternatively, you can use a Display object. After the lookup value is changed, call nuRefreshDisplayObject() to update the Display object accordingly.
Alternatively, you can use a Display object. After the lookup value is changed, call nuRefreshDisplayObject() to update the Display object accordingly.
Re: Detect lookup onchange
Interesting, but is not shown in the lookup browse if this detail is important.kev1n wrote: ↑Tue May 21, 2024 2:59 pm If the data is part of the lookup form, you can use nuSetFormValue().
Yes, I noticed about this JS function 2 minutes ago, but is not working at all to me.Alternatively, you can use a Display object. After the lookup value is changed, call nuRefreshDisplayObject() to update the Display object accordingly.
I have this SQL on my 'prm_negras' display object
Code: Select all
SELECT
fichas_prm.prm
FROM
fichas_prm
WHERE
((fichas_prm.usuario = '#oponente#'))
You do not have the required permissions to view the files attached to this post.
-
- nuBuilder Team
- Posts: 4292
- Joined: Sun Oct 14, 2018 6:43 pm
- Has thanked: 71 times
- Been thanked: 444 times
- Contact:
Re: Detect lookup onchange
Perfect!! Thanks.
(I just discovered the thanks and Accept answer buttons
)
(I just discovered the thanks and Accept answer buttons
