M
|
meirco 10/15/2009 |
tableA ID_A Values_A TableB ID_B Values_B TableC Values_A (LOV) Values_B (LOV) Code the combination of Values_A and Values_B has to be unique, for example Values _A Values_B 1 2 (ok) 1 3 (ok) 2 1 (ok) 1 2 (not ok) The code is a unique field Users want to select Values_A and Values_B from a list, and get as an additional value the corresponding Code value How to set this up in phprunner?
|
S
|
specpa author 10/15/2009 |
Hi I just started using PHPRunner but had the same situation in the project I am working on. look at the dependency option tutorial http://www.xlinesoft.com/tutorials/dependentdropdowns.htm Tutorial Meir
|
J
|
Jane 10/15/2009 |
Hi, global $dal; |
S
|
specpa author 10/15/2009 |
Hi, you can check entered values in the Before record added event and show error message if needed. Here is a sample: global $dal;
|
J
|
Jane 10/16/2009 |
Hi, |
S
|
specpa author 10/16/2009 |
Hi, use this code in the Before record added event: $values["Code"] = $values["Values_A"].$values["values_B"];
|
J
|
Jane 10/16/2009 |
Hi, global $dal; |
S
|
specpa author 10/16/2009 |
Hi, you need to select Code from TableC based on the Values_A and Values_C and save it in the TableD. Use Before record added event for this purpose. global $dal;
|
J
|
Jane 10/19/2009 |
Hi, global $dal; |
S
|
specpa author 10/20/2009 |
Hi, sorry for my fault. Here is the correct one: global $dal;
|
J
|
Jane 10/21/2009 |
It's difficult to tell you what's happening without seeing actual files. |
S
|
specpa author 10/21/2009 |
It's difficult to tell you what's happening without seeing actual files. Please publish your project on Demo Account and open a ticket at http://support.xlinesoft.com sending a URL to your pages along with instructions on reproducing this error.
|