17.2 List

Top  Previous  Next

List type is predetermined for fields that can contain one of several predefined values. For example Fuel type can be one of: Gasoline, Diesel, Gas or other. To modify a database field of list type click on edit icon near it in the "Database fields" section. A list field modification page will be opened. To add a list item enter new value to the "value" field of the "Add item" dialog box. New value will appear in the values list. To rename list value enter new value caption to the appropriate field in the values list and click on "change" button. To delete list value you must first decide whether you want to completely delete this value from the database, or you want to replace this value with the other value. To completely remove the value you should choose "Remove" in the list field in "Actions" column and click on the "Merge" button. To replace the value with other value choose the new value from the list field in "Action" column and click on the "Merge" button. You can also add value that represents the set of other values. For example you can create a "Dark" value in the colors lists that will set of: Black and Brown values, so when user chooses Dark from the list of colors in a search form, he will get listings with Black and Brown color. To add item that is a set of other values enter it caption to the "Value" field, mark "Set" checkbox in the "Add item" dialog box and click on the "Add" button. New set item will appear in the values list. Now you should enter list of ids of values that will include this item separated by spaces to the field below the item caption and press "Change" button. To clear all values in the list click on the "Clear list" link below the table of values. There are also several view types for fields of list type available in search forms:

Drop - standard dropdown menu (only values that present in database are shown)
Opt - a set of radio boxes (only values that present in database are shown)
Check - a set of check boxes (only values that present in database are shown)
Drop no filter - standard dropdown menu (all values are shown)
Opt no filter - a set of radio boxes (all values are shown)
Check no filter - a set of check boxes (all values are shown)