Forum Discussion

yogeshharsh's avatar
yogeshharsh
Occasional Contributor
11 years ago

How to access the data stored on the fpspread objects ?

Hi ,



I am using the TC 10.3 and want to validate values present in the fpspread70 object.



The outcome is listed below when i try to spy this object :



Sys.Process("pt").Window("Afx:10000000:0", "HASHT, JIER  - 0010087241 Opened by Cr", 1).Window("AfxFrameOrView42", "", 1).Window("Afx:10000000:0", "", 1).Window("Afx:10000000:0", "", 1).Window("Afx:d920000:0", "", 1).Window("SysTabControl32", "", 1).Window("Afx:d920000:0", "", 2).Window("Afx:d920000:0", "", 1).Window("Afx:6560000:0", "", 1).Window("fpSpread70", "", 1)



How can i fetch the values present in this object which is a kind of data grid or spreadsheet. I could not find a method with which i can pull any values.



Please help.



Thanks.





2 Replies


  • Hi Oblivious,


     


    Please make sure that your tested application was compiled with debug information as it is described in the corresponding article from here.


     


    This will provide you with access to native properties, fields and methods of the grid control and you can invoke them from your TestComplete script to obtain the required data.


     


    Also, please refer to the "Supported Controls" article to learn whether the control you use is officially supported by TestComplete. If it's not, read the What If My Control Is Not Supported? section of the article to learn the alternative ways.


     

  • yogeshharsh's avatar
    yogeshharsh
    Occasional Contributor
    Hi Tanya



    Thanks for the response but my application is not supported by Debug info agent unfortunately. Luckily i got another solution where i added the class of the object in the Project properties for text recognition which worked for me at the moment.



    Regards

    y