"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.
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often