Hi,
I' m trying to get all the documents that are having the document number as "DOC-*" by using a javascript method.
The code that I' m using is:
var innovator = new Innovator();
var doc = innovator.newItem();
doc.loadAML("<Item type='Document' action='get' select='item_number,description'>" +
"<Item_number condition='like'>DOC-*</item_number>" + "</Item>");
var result = doc.apply();
if (result.isError()) {
top.aras.AlertError("Item not found: " + result.getErrorDetail());
return; }
var count = result.getItemCount();
for (i=0; i<count; ++i) {
var item = result.getItemByIndex(i); }
On my form I have assigned this method to a field on 'OnClick' event. But when I click on the field It is not getting the documents list, even not throwing any error complaining about something. It Just stays calm after clicking on it.
Is there any mistakes in the above code? Or any other I have missed?
Please help me.
Thank You/ Meenu