Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
220
Verify the SetGroupByColumns Functinality
posted

Hi

In one of my Applocation. I need to drag a column and check that the data in the swfTable is sorted accordingly. The Code used is SwfWindow("Accounting Detail").SwfTable("ultraGrid1").SetGroupByColumns "0:"&vColumnName
where VCoulmnName = "ArmId".  I wnat to fetch the data in the column. the code is as follows:

SwfWindow("Accounting Detail").SwfTable("ultraGrid1").SetGroupByColumns "0:"&vColumnName
vRowCount = SwfWindow( "Accounting Detail").SwfTable( "ultraGrid1").Object.Rows.Count

For i =0 to vRowCount-1
 vTemp = SwfWindow("Accounting Detail").SwfTable("ultraGrid1").GetCellData(cstr(i),0)
   Msgbox  vTemp
Next

When I try to execute the above code, it gives me an "Object Reference not set to an instance of the object". Could anyone let me know how can I validate the Drag Funcationality.

Parents
No Data
Reply
  • 7695
    Offline posted

    Which action is giving you the error? The SetGroupByColumns, the Object.Rows.Count, or the GetCellData? If it's the GetCellData what is the value of i and vRowCount when it crashes?

    Also out of curiosity what version of TestAdvantage are you using?

Children
No Data