Is there a possibility to create hier_list_box with multiple select in ADM dialog?
And second thing: is there a possibility to collapse all nodes at dialog initialization?
Is there a possibility to create hier_list_box with multiple select in ADM dialog?
And second thing: is there a possibility to collapse all nodes at dialog initialization?
// Get all the current element valuesvar rslt = dialog.store(); // Get the list selectvar path = new Array();var cSel = ((this.GetListSel(oRslt["lst1"],path))?path.reverse():"").toString(); // Load second list based on selected valueswitch(cSel){case "Germany":dialog.load({"lst3":BRANCHGERMANY});break;case "USA":dialog.load({"lst3":BRANCHUSA});break;case "France":dialog.load({"lst3":BRANCHFRANCE});break;}
var path = new Array();var cSel = ((this.getListSel(["lst1"],path))?path.reverse():"").toString();var oRslt = dialog.store();switch(cSel){case "Germany":dialog.load({"lst3":BRANCHGERMANY});break;case "USA":dialog.load({"lst3":BRANCHUSA});break;case "France":dialog.load({"lst3":BRANCHFRANCE});break;};
Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]
The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]
Then most important JavaScript Development tool in Acrobat
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window[/b][/url]
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script