Skip to main content
Announcements
NEW: Seamless Public Data Sharing with Qlik's New Anonymous Access Capability: TELL ME MORE!
cancel
Showing results for 
Search instead for 
Did you mean: 
danelooman
Creator
Creator

Dynamically get label for drop down.

I have an extension that uses a list generated by the user to populate a list in application. I have added it to my properties but I can't seem to get the label to work. Below is my code and a screen shot of what I see. 

var settingsDefinition = {
			uses: "settings",
					items: {
						MyList: {
							type: "array",
                            ref: "listItems",
                            label: "List Items",
                            itemTitleRef: "MyDropDown.label",
                            allowAdd: true,
                            allowRemove: true,
                            addTranslation: "Add Item",
                            items: {						
								MyDropDown: {
									label: "Field",
									type: "string",
									component: "dropdown",
									ref: "fieldList",
									options: function() {
										return getFieldList().then(function (items) {
											return items;								
												});
									}
								}
                            }
						}
					}
				}

 

0 Replies