I have a drop-down menu that i want to populate from one specific Datasource. the issue is i want to add one option that isn't an item in the db.
The table I have is Brand.
The value of options for that dropdown currently is @datasources.Brand.items, which shows all the items in the db.
- Brand item 1
- Brand item 2
- Brand item 3
All the items in Brand will be in the dropdown , but i want to add one option "All Brands".
I tried to set options of the dropdown to ["All Brands",@datasources.Brand.items]
I don't get the result i want i get "All Brands as option 1 and the 2nd one is one line:
SimplePropertyList{itemType=Brand Record,items[com.google.apps.appmaker.client.model.ActiveRecord.
What I'm looking for is:
- All Brands
- Brand item 1
- Brand item 2
- ....