That function returns a list of names (an array in other language terms).
To convert to a dataset to use on a dropdown you need to add each element into a dimensional list, in this case a single dimensional list. Think, if you have multiple columns in your table, you would have multiple dimensions to the table list.
projectNames = system.project.getProjectNames()
data=[[projectName] for projectName in projectNames]
ds = system.dataset.toDataSet(['projectName'], data)
dropDownObj.data = ds
You’ll need to access dropDownObj via event.source.getComponent("dropDownObj").data or something similar. The easiest way to get the correct path is to use the insert property button at top right of script editor (above insert tag button) to navigate to the component:
@JordanCClark’s code should do the trick in the internalFrame event. If you want to put the code on the component, you’d put it in a property change event checking for the componentRunning property: if event.propertyName == "componentRunning":
@witman, Thats what I was missing!! I forgot about the insert property button. Makes a lot more since now. Especially when I went back and added it to the internalFrameActivated event on the main window.
@JordanCClark, I was missing the correct path to the dropdown dataset property when I tried it in the window.
Thank y’all so much for the help. Now on to the next step.