Hi Miyako,

Your example database:

https://doc.4d.com/4Dv16/4D/16.4/Pop-up-MenusDrop-down-Lists.300-3998943.en.html
 
<https://doc.4d.com/4Dv16/4D/16.4/Pop-up-MenusDrop-down-Lists.300-3998943.en.html>

shows assigning a “Form” object to store the popup’s current state. 

The object assigned to the popup menu has these 2-properties: “val” and “ref”.

From your code:
—
$list:=New list

APPEND TO LIST($list;"a";1)
APPEND TO LIST($list;"b";2)
APPEND TO LIST($list;"c";3)

OBJECT SET LIST BY REFERENCE(*;OBJECT Get name(Object current);Choice 
list;$list)

Form[OBJECT Get name(Object current)]:=New object("val";1;"ref";$list) 
—

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?

Best regards,

- Jeremy

> On Jan 28, 2019, at 10:16 PM, Keisuke Miyako via 4D_Tech 
> <[email protected]> wrote:
> 
> associate the popup menu to "list item value (not ref.)"
> 
> https://forums.4d.com/4DBB_Main/x_User/298210/files/28213957.zip 
> <https://forums.4d.com/4DBB_Main/x_User/298210/files/28213957.zip>
**********************************************************************
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]
**********************************************************************

Reply via email to