For context I recommend these two blog posts about displaying collections in listboxes:
https://blog.4d.com/display-a-collection-in-a-listbox/ https://blog.4d.com/multilevel-collection-in-different-listboxes/ I have a very simple situation that's frustrating the heck out of me. A parent form has a data object that contains a small collection. It looks like this: Form: { ... config:{ colorScheme: { name: "Default", colors: [ "#aeaeae","#ffffff","#828282","#4f4f4f","#ffffff","#dadada","#828282" ] } } } I link this object to a subform. This means setting the subform object's variable property to "Form.config.colorScheme". So now the colorScheme object is available through From on the subform. This is such a cool feature, by the way. In the subform I have a field for the name an a listbox for the colors. The name object displays correctly using Form.name. I set the listbox data source to collection and reference the collection I want as Form.colors. I verified that these values are correct in the debugger. Plus I can access Form.colors in the form method just fine. When you have a scalar collection like this (there is only one set of values) you use the new 'This <http://doc.4d.com/4Dv17/4D/17/This.301-3776566.en.html>' command to access them. This has a value property so the single column in the listbox references This.value. This is where I'm stuck. The listbox will just not populate with the values from the collection. As I say I can verify everything in the debugger, the non-listbox references work as expected and I can access the collection data via code as expected. The column type matches the collection data (string). I can't see what I'm not doing - hopefully someone else using this technique has a clue. Thanks as always -- Kirk Brooks San Francisco, CA ======================= *We go vote - they go home* ********************************************************************** 4D Internet Users Group (4D iNUG) FAQ: http://lists.4d.com/faqnug.html Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

