Reading Value from Java Table - Printable Version +- Micro Focus QTP (UFT) Forums (https://www.learnqtp.com/forums) +-- Forum: Micro Focus UFT (earlier known as QTP) (https://www.learnqtp.com/forums/Forum-Micro-Focus-UFT-earlier-known-as-QTP) +--- Forum: UFT / QTP Beginners (https://www.learnqtp.com/forums/Forum-UFT-QTP-Beginners) +--- Thread: Reading Value from Java Table (/Thread-Reading-Value-from-Java-Table) |
Reading Value from Java Table - arjun.singh - 11-18-2009 Hi All, I have a javatable in which there are many values.Every time My QTP script is run, I would like to select a value from Javatable which has decription like "Interest"(say).How can I read Values in Java table and so that at the time of running of script,it seraches for "Interest" in Javatable and selects that cell.[/align] RE: Reading Value from Java Table - sreekanth chilam - 11-18-2009 [/u]Hi Arjun, Use "GetCellData" & "SelectCell" methods. Syntax: object.GetCellData(Row, Column) Syntax: object.SelectCell Row, Column Check out the below example & implement accordingly. Example: Code: Expected_Value="test" RE: Reading Value from Java Table - arjun.singh - 11-19-2009 Thanks for the reply.It worked RE: Reading Value from Java Table - perplexed - 06-13-2011 How can i compare an empty string in the above case ? I want to skip reading data from cells which are empty. thanks for the reply. RE: Reading Value from Java Table - Shridevi.Salagare - 05-15-2012 Is there any way we can directly get the value of the row containing perticular value,Without traveresing the whole table everytime. E.g If in a table row 3 and column "operations" contains a value "insert",then is there a way we can get the row of the cell containing data insert directly without using cell by cell search? RE: Reading Value from Java Table - kotaramamohana - 05-15-2012 Please check whether your webtable object supports below mentioned method. Code: object.GetRowWithCellText (Text, [Column], [StartFromRow]) RE: Reading Value from Java Table - Shridevi.Salagare - 05-16-2012 Hi kotaramamohana, I am working on javaTable and object.GetRowWithCellText is not supporting. Its showing errror. Could you please suggest some other option? In my project numerous times I have to do it and it takes lot of time to search cell by cell. RE: Reading Value from Java Table - Shridevi.Salagare - 05-22-2012 Any suggestions ppl? Please respond,as this would avoid lot of time in my project. RE: Reading Value from Java Table - sivaji - 10-11-2017 (05-22-2012, 06:24 PM)Shridevi.Salagare Wrote: Any suggestions ppl? |