Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Getcelldata and Setcelldata
#5
Not Solved
Hi dizzy,

see the example below,

for getting the rowcount for the webtable,SAPGuiTable etc., ,use rowcount method.

Code:
var=SAPGuiSession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiTable("Sales Order").rowcount

msgbox var
here getting how many rows present in the GuiTable

for i=1 to var

var1=SAPGuiSession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiTable("Sales Order").GetCellData(i,"Material")

msgbox var1

next

here we can get the cell data upto the loop will exit.

for set the cell data in the SAPGuiTable

Code:
SAPGuiSession("Session").SAPGuiWindow("Create Sales Order: Initial").SAPGuiTable("Sales Order").SetCellData 1,"Material","100"

1 is row name
"Material" is column
"100" is data

here i have explained for SAP application ,this script same for web application also.
Reply


Messages In This Thread
Getcelldata and Setcelldata - by rajeshdizzy - 07-16-2009, 06:44 PM
RE: Getcelldata and Setcelldata - by balakrish - 07-16-2009, 06:56 PM
RE: Getcelldata and Setcelldata - by supputuri - 07-16-2009, 07:01 PM
RE: Getcelldata and Setcelldata - by rajeshdizzy - 07-17-2009, 09:52 AM
RE: Getcelldata and Setcelldata - by balakrish - 07-17-2009, 11:00 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Using SAPGuiTable).SetCellData to Active cell. rhozeski 2 1,958 02-10-2020, 10:44 PM
Last Post: rhozeski
  SetCellData issue with JavaTable shashidtj 2 2,387 09-27-2017, 12:55 AM
Last Post: shashidtj
  Webtable().GetCellData() Returns hidden values of Cells ssvali 4 5,674 06-07-2013, 08:37 PM
Last Post: kawsar
  QTP - Webtable().GetCellData() returns unknown symbols and spaces lokesh8008 2 4,677 05-10-2013, 03:49 AM
Last Post: sria123
  GetCellData syntax jason77 1 14,215 05-12-2009, 12:00 PM
Last Post: manojith1984

Forum Jump:


Users browsing this thread: 1 Guest(s)