Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
I'm facing a problem in one of my XUI windows when I try to load a file from a certain directory; my dialogue is a loading file window and the idea is to load the file from a directory specified by a path loaded with a 'Browse..' button, the problem I'm having is that every time I load certain paths I receive the "[A11316] Unexpected argument error"; I could see this only happens when the directory contains a blank space in the name of any of the directories including in it.
I hope anyone could explain me alittle more about this A11316 error so I could handle it.
Paulette 🙂
Hello Clay!
I'm attaching you the code I'm using to select the path and the method in the which one Arbortext is reporting me the error..
<button id="browse" label="Browse...">
dlgdoc.getElementById("load_dir_check").setAttribute("checked","false");
text = dlgdoc.createTextNode(filename);
}
</button>
<script ev:event="DOMActivate" type="text/javascript">
path = dlgdoc.getElementById("path").firstChild.firstChild.nodeValue;
var ret; ret = Acl.execute("source docGuru_load_xml_report.acl");
dlgitem_add_callback($load_file_win, "load_dir_check", "load_reports_dir")... function load_reports_dir(win, dlgitem, event, data, appdata){ ...<
dlgitem_set_value($win, 'path', $main::ENV['REPORTS_DIRECTORY']); =
} else if($checked == 1){
#remove, if there's any, the value in the path
dlgitem_deactivate($win,'load_file');
}#Ends ITEM_CHANGED conditional block
Thanks in advance for your time,
Hello Brian,
I just uploaded a reply with my code 😄
Thank you so much,
Paulette
Clay,
Thank you so much for your help, I was sure the error was related with js_eval line, however I changed it and the error is still there, but, seeing my code I think I identified where the error is thrown, I have a method where I am using the "cd" ACL command, I think that if I define a PATH with spaces it will send me the error, do you have any idea about how to allow "cd" comman using names of directories which have any blank space in it?
Again, thank you so much for you time 🙂
Paulette
Clay,
Paulette