Micro Focus QTP (UFT) Forums
Data not saving to data table using GetRoProperty - 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: Data not saving to data table using GetRoProperty (/Thread-Data-not-saving-to-data-table-using-GetRoProperty)



Data not saving to data table using GetRoProperty - narasimha - 08-11-2011

Data retrived using Getropropert during run time is not saving to data table
plz help here is the script
Code:
datatable.SetCurrentRow(i+1)
datatable("listofalllinks",global)=Browser( oBrowser).Page( oPage).GetTOProperty("href")



RE: Data not saving to data table using GetRoProperty - parminderdhiman84 - 08-11-2011

Hi,

You are using wrong syntax. Use the below
Code:
datatable.value("listofalllinks",global)=Browser(oBrowser).Page( oPage).GetTOProperty("href")

Regards,
Parminder


RE: Data not saving to data table using GetRoProperty - narasimha - 08-11-2011

hi Parminder thanks for the reply still data not saved in data table.


RE: Data not saving to data table using GetRoProperty - parminderdhiman84 - 08-11-2011

Hi,

Could you please save this
Code:
Browser(oBrowser).Page( oPage).GetTOProperty("href")
in a variable and debug to see if "href" property is bringing any value or not.

Regards,
Parminder


RE: Data not saving to data table using GetRoProperty - Sathiya - 08-12-2011

hi
try with the following one
Code:
listofalllinks=Browser(oBrowser).Page( oPage).GetTOProperty("href")
msgbox sVal (check  the value  whether that is the expected one)
datatable.value(listofalllinks,global)



RE: Data not saving to data table using GetRoProperty - supputuri - 08-13-2011

Hi Narsimha,

First thing is the code you developed is correct but as mentioned parminderdhiman84 confirm that getroproperty is pulling some value before writing to global sheet.

And the other thing that we have to remember is what ever the values that you entered/written to global sheet won't display in the global sheet once the execution is completed, we can find the data only in the "Run-Time Data Table" in the results window. Please let me know still you can get what you desired.

If you are using the code provied by Sathiya, make sure that you have used the correct variable while writing to msgbox (listofalllinks but not sVal )