<br /><br />Hi Steve—<br /><br /><br /><br /><br /><br /><br /><br />You can use the Acl.eval() javascript<br />function to do this. Here’s an example from one of our custom dialogs:<br /><br /><br /><br /><br /><br /><br /><br /><button label="Browse..."><br /><br /><br /><br /><script<br/>ev:event="DOMActivate" type="text/javascript"><br /><br /><br /><br />// Show file dialog and get result<br /><br /><br /><br />filename =<br />Acl.eval("file_selector('.','xml','XML files|*.xml|All files|*.*','Select<br />Document')");<br /><br /><br /><br />if (filename != null) {<br /><br /><br /><br /> dlgdoc =<br />Application.event.target.ownerDocument;<br /><br /><br /><br /> href =<br />dlgdoc.getElementById("href").firstChild;<br /><br /><br /><br /> if (href.firstChild != null)<br />href.removeChild(href.firstChild);<br /><br /><br /><br /> text = dlgdoc.createTextNode(filename);<br /><br /><br /><br /> href.appendChild(text);<br /><br /><br /><br />}<br /><br /><br /><br /></script><br /><br /><br /><br /><br /><br /><br /><br />The script pops up the dialog, and the<br />user can select a file. (If the user cancels, the function returns null.) Then<br />the script populates the associated text box (with id = “href”) with<br />the value selected.<br /><br /><br /><br /><br /><br /><br /><br /> --Clay<br /><br /><br /><br /><br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br />From: Steven Anderson<br /> <br /><br />Sent: Wednesday, September 20,<br />2006 9:50 PM<br /><br />To: adepters@arbortext.com<br /><br />Subject: Calling an ACL function<br />from an XUI dialog<br /><br /><br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br />I'm a complete novice at both ACL and XUI, but I'm trying to<br />learn. One of the things I'm trying to learn is how to create my own file<br />picker dialog. I'd like to create a dialog box with a button that allows<br />the user to select a file using a standard file picker.<br /><br /><br /><br /> <br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br /> <br /><br />I have created a dialog box in XUI (XUI is cool!), but I<br />can't find a file picker for XUI. I found one in ACL, though -<br />file_selector. Can I call an ACL function from a XUI button? I saw<br />how to do that with Javascript in the customizing guide, but it looks like you<br />can't do this with ACL.<br /><br /><br /><br /> <br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br /> <br /><br />Any advice?<br /><br /><br /><br /> <br /><br /> <br /><br /><br /><br /><br /><br /> <br /><br /> <br /><br /> <span<br/>style='font-size:10.0pt;font-family:Arial'>Steve<br /><br /><br /><br /> <br /><br />>> To unsubscribe from the list, send an email to<br />listmanager@maillist.arbortext.com with the following in the body: unsubscribe<br />adepters - For additional information on the adepters list (how to subscribe or<br />unsubscribe etc), send an email to: listmanager@maillist.arbortext.com with the<br />following in the body: info Adepters - You may also go to forums.arbortext.com,<br />enter the Adepters folder and change your subscription options and<br />preferences.>> <br /><br /><br /><br />