![]() |
Sergey Kornilov admin 8/7/2020 |
Very easy, use SQL variables: |
A
|
AlphaBase author 8/9/2020 |
Doesn't work, no way, no how. Maybe I'm doing it wrong? |
![]() |
Sergey Kornilov admin 8/10/2020 |
The idea is correct but you might be doing it wrong. |
A
|
AlphaBase author 8/10/2020 |
The idea is correct but you might be doing it wrong. Every single piece should be correct i.e. you need to enter WHERE clause surrounded by double quotes, Client_Id and CLIENT_ID are two different things, CLIENT_ID must be a text field, otherwise, you need to remove single quotes from your WHERE clause etc. It will work once you get everything right.
|
![]() |
Sergey Kornilov admin 8/10/2020 |
One more thing to consider. While SQL variables will work with current field values on Add/Edit pages it may not apply when you add master and details together. In this case, you can implement a Field Event for CLIENT ID2 field, save its value in the session variable and then reference that session variable in Lookup Wizard WHERE clause using session variable like :session.clientid2 |
A
|
AlphaBase author 8/29/2020 |
Finally got back to this. Thanks it works. While SQL variables will work with current field values on Add/Edit pages it may not apply when you add master and details together. In this case, you can implement a Field Event for CLIENT ID2 field, save its value in the s It would be great if this functionality as added to Master_Detail forms. |