This topic is locked

Using LookUp Wizard Where Clause with Master Key

10/7/2006 9:42:11 PM
PHPRunner General questions
M
MikeB941 author

Similar to using the dependent linked lookup wizard drop down boxes, I'd like to limit the selections from a lookup wizard drop down box based on the value of the master key passed to the detail record using the where clause.
I've tried unsuccessfully to use:
"IP_IO_ID=".@$_SESSION[$strTableName."_masterkey"]
(IP_IO_ID is the office id number which is the Master-Detail key)
This WHERE clause for the lookup wizard gives an SQL syntax error.
Can anyone help with the right WHERE clause for this?
Many, many thanks!
Take Care... Mike.

Alexey admin 10/9/2006

Mike,
with PHPRunner 3.1 you should use the following expression:

"IP_IO_ID=".@$SESSION[$strTableName."masterkey1"]