Re: Popup/Dropdown element 0

2019-01-31 Thread Keisuke Miyako via 4D_Tech
2019/02/01 10:58、Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com>のメール: in fact, some keen observers of ORDA have commented that to be clear, ORDA is the combination of object access to the persistent relation datastore and the binding of object data to native UI el

Re: Popup/Dropdown element 0

2019-01-31 Thread Keisuke Miyako via 4D_Tech
> 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 choi

Re: Popup/Dropdown element 0

2019-01-31 Thread Jeremy French via 4D_Tech
Hi Miyako, Your example database: 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

Re: Popup/Dropdown element 0

2019-01-30 Thread Keisuke Miyako via 4D_Tech
This is an old-style process variable declared as text array. The popup/dropdown displays the 0 element value properly when the array is empty, but does not display it when the array has elements. that has not been my experience (the array is not empty) to be precise, I used v17.232641 on Mojave

Re: Popup/Dropdown element 0

2019-01-30 Thread Jim Crate via 4D_Tech
On Jan 30, 2019, at 1:33 PM, Keisuke Miyako via 4D_Tech <4d_tech@lists.4d.com> wrote: > > by the way, I just tested, setting the element to #0 of populated default > value/text array popup menu works fine. > > are you using process variables or form local (anonymous) variables? > are you runnin

Re: Popup/Dropdown element 0

2019-01-30 Thread Keisuke Miyako via 4D_Tech
the example DB I posted earlier in this thread uses New list and OBJECT SET LIST BY REFERENCE. the list can be totally dynamic, it does not need to exist in the toolbox. when you use default values, you essentially using text arrays constants. that is why, for example, if the popup menu is associ

Re: Popup/Dropdown element 0

2019-01-30 Thread Jim Crate via 4D_Tech
I see, it uses a list for the choices but can display a value not in the list. That will be useful for those cases where the values come from a list. In this case the popup choices are set dynamically based on other values. This should also work with the “Default Values” property, right? Is the

Re: Popup/Dropdown element 0

2019-01-29 Thread Keisuke Miyako via 4D_Tech
it's a v14 feature https://download.4d.com/Demos/4D_v14/HDI/Use-Popups-with-Variables.zip > 2019/01/30 7:13、Jim Crate via 4D_Tech <4d_tech@lists.4d.com>のメール: > The v15 and v16 documentation doesn’t mention using a text variable for a > popup/dropdown. Do you have some info on how that would work

Re: Popup/Dropdown element 0

2019-01-29 Thread Jim Crate via 4D_Tech
The v15 and v16 documentation doesn’t mention using a text variable for a popup/dropdown. Do you have some info on how that would work? https://doc.4d.com/4Dv16/4D/16.4/Pop-up-MenusDrop-down-Lists.300-3998943.en.html Jim Crate > On Jan 28, 2019, at 7:16 PM, Keisuke Miyako via 4D_Tech > <4d_tec

Re: Popup/Dropdown element 0

2019-01-28 Thread Keisuke Miyako via 4D_Tech
this is v17 but I can confirm that it is possible to display a default value, provided you associate the popup menu to "list item value (not ref.)" https://forums.4d.com/4DBB_Main/x_User/298210/files/28213957.zip using text arrays is old school, it's much easier to associate a popup menu to a tex

Popup/Dropdown element 0

2019-01-28 Thread Jim Crate via 4D_Tech
I’m pretty sure that popup/dropdowns used to display the value stored in the array’s element at index 0 in earlier versions of 4D, if you set the array’s value to 0. I have code in the system that uses that to display a title for a popup that is separate from the values, or to display a value th