This topic is locked

Lookup Wizard - List of Values

5/10/2007 10:11:27 AM
PHPRunner General questions
D
daviesgh author

Hi,
In the Lookup Wizard, when the 'List of Values' is selected, it does not appear possible to store one value in the database and display another on the page e.g. Store Y/N and display Yes/No. The only way around this appears to be to store Yes/No in the database, or to have a Yes/No Table and use the Lookup Table feature, which may make the SQL much more complex. I don't really want lots of extra Database Tables storing Yes/No, True/False, Accepted/Rejected etc, storing values which are never going to change. This is a regular feature of most other programs.
The above also applies to Checkbox and Radio Buttons. It does not seem possible to define the values for a Checkbox, and the values for a RadioButton appear to be the same as Lookup Wizard - List of Values.
On Edit/Add Pages it is sometimes useful to make a field readonly but still display it. However if that field is a lookup, only the code value will be displayed, as you can either choose Readonly or Lookup Wizard. Also, if the field is a date/time, the readonly field is displayed as a date/time and there is no choice of formatting.
It would be great if the Lookup Wizard can be made more flexible, or does anyone have some workarounds?
Gordon

Sergey Kornilov admin 5/10/2007

Gordon,
we'll add a feature to have separate display/link values for manually entered lists in some future version.

As a minor note I still recommend to use database-based lookup wizards as this makes your design more portable and you can reuse these lookups in many projects.
Readonly fields on Add/Edit pages are displayed according to chosen "View as" type.