Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Datatable header inserting error
#1
Not Solved
Hi i am using this code for inserting header of a webtable into datasheet

********************
Code:
datatable.AddSheet("TempStatusHold")
           clcnt=Browser("name:=****").page("title:=****").WebTable("class:=dataGrid").ColumnCount(1)

     For i=1 to clcnt
     columnHeader=Browser("name:=****").page("title:=****").WebTable("class:=dataGrid").GetCellData(1,i)        
      datatable.GetSheet("TempStatusHold").GetParameter(i).Value=columnHeader
      next

************************
The above code is throwing below error

The Sheet.GetParameter operation failed. The specified parameter index value: "1" does not exist in the data sheet.

Line (7):
Code:
"datatable.GetSheet("TempStatusHold").GetParameter(i).Value=columnHeader".



Same code in other function is working fine but how come it is not working in a new test,
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 965 09-11-2019, 02:52 PM
Last Post: siddharth1609
  Datatable.importsheet error niks19 2 3,403 08-21-2015, 12:00 AM
Last Post: ADITI1992
  Datatable import error Prashanth 7 16,399 11-19-2014, 06:53 PM
Last Post: praveen.g3
  Unable to right click column header sudhirzpatil 4 6,395 07-18-2013, 09:42 PM
Last Post: sudhirzpatil
  Add Simple Text Header mot0rola 2 2,512 07-09-2013, 10:30 AM
Last Post: Ankur

Forum Jump:


Users browsing this thread: 1 Guest(s)