Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
AddParameter method does not add in first column of datatable
#1
Not Solved
Hi,
If am using Datatable's AddParamter method, it adds the column not in place of first column "A" but adds it to next column. Eg,

Code:
Datatable.GetSheet(2).AddParameter "username","Ritika"        Datatable.GetSheet(2).AddParameter "pwd","hello"
wait  4

Should't it change first column name as "username". It is adding second column of datasheet as "username" . Pls see screenshot attached.


Attached Files Image(s)
   
Reply
#2
Not Solved
Do you see an active row in sheet 2 before hitting "Datatable.GetSheet(2).AddParameter "username","Ritika" " this line of code. Then might have entered some value in A1 cell. Try to delete the row and then try again.
Thanks,
SUpputuri
Reply
#3
Not Solved
Hi,
Thanks for help! yes you are right, the first row shows activated in global as well as action1 sheet. Though i don't remember entering any data in this. However when I try to delete the row using Ctrl+k or rightclick+edit+delete it doesn't delete the row. So, I write this script in new test & it works as first row is not activated in this new test. So, thanks so much !

But is there anything like if first row in global & Action1 sheet is once activated we can't delete it?
Reply
#4
Not Solved
Hi guys pls reply, "But is there anything like if first row in global & Action1 sheet is once activated we can't delete it?"
Reply
#5
Not Solved
Hey sorry for the late reply, are you looking at the run time data table?
To confirm whether the details are added from the first column, just open your results and then click on "View>Data". Can you please share the screenshot of that runtime data table.
Thanks,
SUpputuri
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  [UFT] Get column name from SfwObject felino 0 3,023 12-02-2015, 04:07 PM
Last Post: felino
  Unable to right click column header sudhirzpatil 4 6,397 07-18-2013, 09:42 PM
Last Post: sudhirzpatil
  datatable column exist diya 3 12,553 12-11-2012, 11:24 AM
Last Post: elango87
  how to get column count Ishul 5 19,502 09-27-2012, 04:19 PM
Last Post: ssvali
  Adding Value to DataTable Column kriday 3 6,635 09-14-2012, 11:51 AM
Last Post: SIBICA

Forum Jump:


Users browsing this thread: 2 Guest(s)