Micro Focus QTP (UFT) Forums
error whith getcelldata within actxtable - 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: error whith getcelldata within actxtable (/Thread-error-whith-getcelldata-within-actxtable)



error whith getcelldata within actxtable - frebuffi - 02-27-2013

hello,
i am facing a problem when getting data within acxtable. "error not specified". the table has 30 rows but when I run the script appears only 7 of them (so i had to add make cell visible) but when row pass the 7th, make cell visible passed ok, select cell passes ok , but error appear with get cell data (error not specified)...can you help me with this. here is the code

Code:
i=1
While i<=rowcount
VbWindow("frmTracking").VbWindow("frmOpCons").ActiveX("SSSplitter").AcxTable("Visor de Operaciones").MakeCellVisible  i,1      
                                                                       VbWindow("frmTracking").VbWindow("frmOpCons").ActiveX("SSSplitter").AcxTable("Visor de Operaciones").SelectCell  i,1    
                                                                         aux=VbWindow("frmTracking").VbWindow("frmOpCons").ActiveX("SSSplitter").AcxTable("Visor de Operaciones").GetCellData( i,1)                                                  
i=i+1

wend



RE: error whith getcelldata within actxtable - Munna.Sarfraz - 02-27-2013

I faced same issue in SWF Table,
Problem: GetCellData returning null.
Suggested Solution: Use following code, I am sure it should work.
Code:
aux=VbWindow("frmTracking").VbWindow("frmOpCons").ActiveX("SSSplitter").AcxTable("Visor de Operaciones").Object.GetCellData( i,1)

Please do let me know, if suggested solution not working fine.

-Sarfraz