![]() |
Sergey Kornilov admin 3/3/2014 |
Here is what I think you can do. $value=DBLookup("select DisplayField from LookupTable where LinkField=".$data["LookupFieldFromTheMainTable"]);
|
W
|
wildwally 3/5/2014 |
I have run into similar situations where I have created tables that I use to populate drop down fields for my users. To maintain my historic data yet control what is still available in the future I utilize an additional field to flag active or not. This could be done with a check box using 1 or 0 or true or false, the choice is yours. Then you just add a simple the condition to your look up. |
S
|
Stucco author 3/5/2014 |
I have run into similar situations where I have created tables that I use to populate drop down fields for my users. To maintain my historic data yet control what is still available in the future I utilize an additional field to flag active or not. This could be done with a check box using 1 or 0 or true or false, the choice is yours. Then you just add a simple the condition to your look up. example: Table ship_type ID Ship_Type_Name Est_Days Active Still use the ID as the field value with user seeing the name, but filter on the Active. Then your list will still show the data correctly.
|
W
|
wildwally 3/5/2014 |
Can you provide a little more detail in where the data is coming from and what is looking at it? |
S
|
Stucco author 3/16/2014 |
Say for example I have the following structure.
|