Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Retrieve columnname position from webtable
#1
Not Solved
Hi Team,

I want to retrieve columnname position(row*column) from Webtable on web application.Could anyone suggest me please.


Thanks
Srinu Kodi
Reply
#2
Not Solved
I don't understand what do you mean by "columnname POSITION". Do you want to get the x,y coordinates ? or the column number based on the column name?

If you can provide clear info we will give you the best ans.
Thanks,
SUpputuri
Reply
#3
Not Solved
I mean,If there are 10 columns in webtable,and we know only column name like Invoive.No.But we don't know in which cloumn it is.I want find that position whether 1st or 2nd or 10th column.


Thanks
Srinu Kodi
Reply
#4
Not Solved
Try the below code
Code:
rCnt = Browser("").Page("").WebTable("").GetROProperty("rows")
For i = 1 to rCnt - 1
   cCnt = Browser("").Page("").WebTable("").GetROProperty("columns")
     For j = 1 to cCnt - 1
        Col_Name = Browser("").Page("").WebTable("").GetCellData(i,j)
        If Col_Name = "Invoive.No" Then
           Msgbox "Column Number" & j
        End IF
     Next
Next
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
  Cannot retrieve Native property JeL 1 1,093 07-29-2019, 05:41 PM
Last Post: JeL
  To retrieve content of a WEBEDIT object alpha1 2 2,616 06-11-2015, 11:21 AM
Last Post: vinod123
  How to retrieve specied string from text file nsuresh316 1 2,476 06-09-2015, 12:24 AM
Last Post: nsuresh316
  Retrieve row number based on value in DataTable marfa 6 30,791 07-31-2014, 08:36 PM
Last Post: dharshinishankari@gmail.com

Forum Jump:


Users browsing this thread: 1 Guest(s)