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 - How to access all results and number of pages from main grid

Praveen.D - Wednesday, December 28, 2011 4:21 PM:

I want to access the number of pages of results and and total number of results using java script from teh main grid.

 

My code is 

 

var grid = top.main.work.gridApplet;

var dum = grid.GetRowCount();

var itemTypeName = top.main.work.itemTypeName;

var  currQryItem = top.aras.newQryItem(itemTypeName);

 

alert(currQryItem.getPageSize());

alert(currQryItem.getMaxRecords());

The problem is currQryItem is always blank and returning pagesize and maximum records as -1 



fli - Thursday, December 29, 2011 5:38 AM:

Praveen,

Where is your code running?



Praveen.D - Thursday, December 29, 2011 10:54 AM:

The code is in a javascript method attached to a generic ACTION.