The community will undergo maintenance on October 16th at 10:00 PM PDT and will be unavailable for up to one hour.
I have been trying this, but I can not see any response from Arbortext. I have been working on the second way, I implemented the basic example you provided me, there are other types of event? My XUI window is showed, but I suppose some fashion my method can not be called. Do I have to implement my ACL method in the same file i have coded the function to show my XUI window?
As always I really appreciate your time and support.
Regards,
Paulette
In Reply to Clay Helberg:
Hi Paulette--
There are a couple of ways you can do this:
1) In your XUI file, inside the button object, use script code to invoke the ACL function via the AOM Acl.eval() method, something like this:
<button label="Click" me"=">
<script ev:event="DOMActivate" type="text/javascript">Acl.eval("response('Hello from ACL!')");</script>
</button>
2) When you load the XUI to create and show the dialog, use dlgitem_add_callback() to attach an ACL function to the control, something like this:
XUI:
<button label="Click" me"=" id="clickmebtn"/">
ACL:
function hi_from_acl(win, dlgitem, eventtype, eventsubtype, detail) {
if (eventtype == "ITEM_CHANGED") {
response("Hi from ACL (via dlgitem callback)");
}
}
function showDlg() {
local xuidoc = doc_open("myxuidlg.xml");
local win = window_create("xui",0x10,xuidoc);
dlgitem_add_callback(win, "clickmebtn", hi_from_acl);
window_show(win,1);
}
Hope that helps.
--Clay
Clay Helberg
Senior Consultant
TerraXML