This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

DEVELOPERS FORUM - Populate Items Grid

mendenaresh1357 - Tuesday, September 28, 2010 9:24 AM:

HI All,

         I have a aml Query which fetches me the Id's of the Items. 

res = someQuery;

for (var j = 0; j < res.length; j++)
    {
        var tmpDom = top.aras.createXMLDocument();
        tmpDom.loadXML(res[j].xml);
        var item = tmpDom.selectSingleNode('//Item[@type="' + itemTypeName +'"]');
        var itemID = item.selectSingleNode("@id").xml;
        alert("itemID "+itemID);                
    }  

I get all the results to the variable "res". when i loop "res" i get all the id's of Item(as per my query criteria). Now i have item id's in my hand. how to poulate these items on the main search grid.

I tried the following code..

myDom = res.results;

top.aras.uiPrepareDOM4XSLT(myDom, itemTypeID);   

 var grid_xml = res;

if(grid_xml){grid.addXMLRows(grid_xml);}

using above code, am not able to populate.

Any suggestions to populate grid with item's (having id's in hand) ?

Thanks,

Naresh.