Simple select list
Simple select list
Hi guys
So I'm trying to just retrieve some key(id) value(description) pairs from a database and create a simple select list in datatables.
At the moment all the examples lead to linking the select list options to another table. For example:
Field::inst( 'Packaging_Cost.Type_ID' )
->options( 'Packaging_Type', 'Type_ID', 'Type_Desc' ),
Field::inst( 'Packaging_Type.Type_Desc' )
Where Packaging_Cost.Type_ID is changed depending on what Packaging_Type.Type_Desc is chosen.
So what I want to do is just get the Type_ID and Type_Desc from table Packaging_Type, and not edit it at all. All this select list is used for is to filter the options in another select list... which will be using the new dependent function in 1.4.0-1.
Any suggestions?
Thanks in advance
Answers
No suggestions to retrieve a select list for Editor, which is just used to filter another select list?