> The object assigned to the popup menu has these 2-properties: “val” and “ref”. > Where do we find the documentation that says we can associate a popup with a > hierarchical list using a Form.object, where the object has these > 2-properties “val” and “ref” that reflect the popup’s current choice?
there is a misunderstanding. the expression bound to the popup drop down menu is Form.menu.val which is just a text property (of an object of an object == Form). the current "state" as you call it, or just value, is text. assign a new value to Form.menu.val, the menu updates. click a new item on the menu, Form.menu.val changes. the property name "val" is arbitrary. it could be anything, as long as Value type == Is text. but I made a conscious decision to use the naming convention Form[object name].val for the value and Form[object name].ref for the list ref so that in the object method I can write stuff like CLEAR LIST(Form[OBJECT Get name(Object current)].ref) Form[OBJECT Get name(Object current)].val:="a value" kind of DOM in 4D dialog. in fact, some keen observers of ORDA have commented that it would be nice to use object notation with form objects, for example, $title:=Form.button.title Form.button.fontSize:=14 this is in the same spirit. ********************************************************************** 4D Internet Users Group (4D iNUG) Archive: http://lists.4d.com/archives.html Options: https://lists.4d.com/mailman/options/4d_tech Unsub: mailto:[email protected] **********************************************************************

