Dialog Popup List
How do you change the items in a dialog popup based on the selection of another dialog popup?
How do you change the items in a dialog popup based on the selection of another dialog popup?
"pop1": function(dialog)
{
Rslts=dialog.store();
app.alert(Rslts["pop1"]);
},
When I use the code above, the alert says "[object Aggregate]". What am I doing wrong?
"[object Aggregate]" is the type of animal that is being displayed, i.e. it is the result of turning the list object into a string. If you want to see selected value then you need a script to search the list object for the selected value. Fortunately, such code is provided by AcroDialogs.
These two lines right here, which is from the commit function, returns the selected value.
var path = new Array();
this.strpop1 = ((this.GetListSel(oRslt["pop1"],path))?path.reverse():[""])[0];
BTW: the new AcroDialogs online tool has a better function designed just for regular list elements. This one is intended to work for tree lists.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.