Page 1 of 1

Lookup Control / pass variable

Posted: Fri Jan 26, 2018 6:51 am
by toms
Hi,

In nuBuilderPro, I set a hash variable in the form's js section:

Code: Select all

nuSetHash('empFlagActive','1');
lookup.PNG
The lookup form's sql uses this variable in the where clause to show only the active employees:

Code: Select all

SELECT * FROM emp_table WHERE emp_active = '#empFlagActive#'
How to do this with nuBuilderForte? nuSetProperty() doesn't seem to be the right function to use.

Re: Lookup Control / pass variable

Posted: Sat Jan 27, 2018 4:49 am
by admin
toms,

You'll need the latest from Github but

You can use nuSetProperty()

http://wiki.nubuilder.net/nubuilderfort ... etProperty

Steven

Re: Lookup Control / pass variable

Posted: Sat Jan 27, 2018 9:34 am
by toms
Thanks Steven, it works now!

Re: Lookup Control / pass variable

Posted: Sat Jan 27, 2018 9:49 am
by admin
.