cancel
Showing results for 
Search instead for 
Did you mean: 

getting a data from a grid

Former Member
0 Kudos

Hi All

In a grid display template i am displaying row of data (there will be one row always in this case).

and this grid i made it invisible

Now i need to get the row of data and display it in the html.

i can get the data using

var BatchGrid = document.BatchList.getGridObject();

var selBatch = BatchGrid.getSelectedCellValue(1);

we cant select the row in the grid since the grid is invisble.

How i can get the row without selecting

Please provide your inputs

Thanks

Karthi D

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Karthi

use this:

document.BatchList.getGridObject().getCellValue(rownumber,columnnumber);

Answers (4)

Answers (4)

jcgood25
Active Contributor
0 Kudos

The iGrid will display itself automatically in your html page - what's the special requirement that makes you need to hide it and pump the results into your page with script?

Former Member
0 Kudos

Karthi,

If you are using an iGrid for just holding data, you may want to investigate iCommands. For more information, you can click [here|http://help.sap.com/saphelp_xmii115/helpdata/en/Applet_Reference_Details/iCommand_Reference.htm].

Regards,

Kevin

Former Member
0 Kudos

Hi Karthi,

Try to use Frontpage and add XMII script assistant in front page under Tools->Add-ins.

You can learn what all applet methods available and also object method in that.

Like you will get information for grid applet, or icommand, iBrowser etc etc.

That will make you easy to understand all methods available.

There will methods available for Query template , display template etc for which Applet u select.

Use Wizards.

Regards

Padma

Edited by: Rao on May 8, 2009 11:17 AM

Edited by: Rao on May 8, 2009 11:45 AM

Former Member
0 Kudos

Hi,

There are many methods to get the rowvalues without select the grid like mentioned below:

document.applet.getGrdiObject.getgetCellValue(rownum,colnum);

document.applet.getGridObject().getCellValueByName(rownum,colname);

hope this may solve your query.

-Suresh Hiremath