R
|
rgfischerjr 2/26/2009 |
I want to set up a lookup on a child table. The master table has a foreign key (PhyId= 123). Is there a way to use the masterkey value of the master table when setting up the WHERE statement in the lookup wizard. The child table does not contain the PhyId as a field. I want to only list the rows where the PhyId is equal to masterkey value of the master table. Or, Is there a better way to do this.
|
R
|
rgman author 2/27/2009 |
I want to set up a lookup on a child table. The master table has a foreign key (PhyId= 123). Is there a way to use the masterkey value of the master table when setting up the WHERE statement in the lookup wizard. The child table does not contain the PhyId as a field. I want to only list the rows where the PhyId is equal to masterkey value of the master table. Or, Is there a better way to do this.
|
![]() |
Sergey Kornilov admin 2/27/2009 |
Sure, you can use custom WHERE clause " ForeignKey = " . $_SESSION[$strTableName.'_masterkey1']"
" ForeignKey = '" . $_SESSION[$strTableName.'_masterkey1']" . "'" |
R
|
rgman author 2/27/2009 |
Sure, you can use custom WHERE clause If master key value is a text you need to wrap it by single quotes:
|
![]() |
Sergey Kornilov admin 2/27/2009 |
$strTableName is a variable name and you should not replace it. |
R
|
rgman author 3/2/2009 |
$strTableName is a variable name and you should not replace it.
|
![]() |
Sergey Kornilov admin 3/2/2009 |
Session and other variables don't make sense when you test in PHPRunner. It should work though when you build and run your application in web browser. |
R
|
rgman author 3/3/2009 |
Session and other variables don't make sense when you test in PHPRunner. It should work though when you build and run your application in web browser.
|
J
|
Jane 3/4/2009 |
Hi, |
R
|
rgman author 3/4/2009 |
Hi, add this code to the Add paeg: Before process event.
|
![]() |
Sergey Kornilov admin 3/4/2009 |
Probably closing curly brace is missing. |
R
|
rgman author 3/10/2009 |
Thank you for the hints, This section is working now. |