Skip to content

Infragistics Community Forum / Test Automation For Micro Focus Uft Windows Forms / How I get value as TEXT with GetCellData() in SwfTable

How I get value as TEXT with GetCellData() in SwfTable

New Discussion
Avishai
Avishai asked on Apr 19, 2011 3:02 PM

I’m Using 8.3CLR 2.0 + QTP 9.2

We have SwfTable (see the attach) when I use SwfTable(…).GetCellData([RowNumber], “Autid Action”) I get the number as it’s appear in deciphering Table.

How I can get the text ?

Sign In to post a reply

Replies

  • 0
    Ammar Zuriki
    Ammar Zuriki answered on Mar 16, 2009 1:54 PM

    Hi Avishaiy,

    Try this:

    SwfTable(…).ActivateCell([RowNumber],"Audit Action")

    Dim CellText= SwfTable(…).GetNAProperty.("ActiveCell.Text")

    I hope this will work for you

    Regards,

    Ammar

    • 0
      Avishai
      Avishai answered on Mar 16, 2009 3:28 PM

      Thanks it's work  :~)

    • 0
      Anuja
      Anuja answered on Apr 19, 2011 11:25 AM

      Hi Ammar,

      intRow=SwfWindow("BT Agent Desktop v1.0.9.11").SwfTable("BillingAccount").RowCount

      For i=0 to intRow

      strBAC = SwfWindow("BT Agent Desktop v1.0.9.11").SwfTable("BillingAccount").GetCellData(i,2)
        If strBAC="GP00009893"  Then
             SwfWindow("BT Agent Desktop v1.0.9.11").SwfTable("BillingAccount").SelectCell i,2
           Exit for
        End If

      Next

      This is giving me a weird error for getcelldata

      IG : The supplied UltraGridRow argument [0] is not one of the expected type(s) : String or Int16
      Line (360): "strBAC = SwfWindow("BT Agent Desktop v1.0.9.11").SwfTable("BillingAccount").GetCellData(i,2)"

      I am unable to understand why is it giving me this error.

      Please help..

      Need help urgently.. Thanks 🙂

      • 0
        Michael Germann
        Michael Germann answered on Apr 19, 2011 3:02 PM

        I am not entirely sure why myself. I would be curious to know what version of TestAdvantage you were using, as well as the QTP version. My thought is, for some reason the int is being treated as an different datatype, int32, or something else. Perhaps it was an old bug, that was resolved, or something new in QTP11. Regardless though it should be resolvable by encapsulating the i parameter in a CSTR(i) function.

        Let me know if it works,

  • You must be logged in to reply to this topic.
Discussion created by
Favorites
Replies
Created On
Last Post
Discussion created by
Avishai
Favorites
0
Replies
4
Created On
Apr 19, 2011
Last Post
15 years, 3 months ago

Suggested Discussions

Tags

No tags

Created by

Created on

Apr 19, 2011 3:02 PM

Last activity on

Feb 20, 2026 1:02 PM