Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Dependent iteration between global and localsheet
#2
Not Solved
Hi,
the script might look like this:
Code:
For i = 1 To DataTable.GlobalSheet.GetRowCount
        
        globalTCID = DataTable.GlobalSheet.GetParameter("TCID").ValueByRow( i )

        For j = 1 To DataTable.GetSheet("Local1").GetRowCount
               If DataTable.GetSheet("Local1").GetParameter("TCID").ValueByRow( j )  = globalTCID Then
                     ' do the test for data in row nbr 'j'
                     MsgBox( globalTCID & " -- Last name  -----> " & DataTable.GetSheet("Local1").GetParameter("Last_Name").ValueByRow( j ) )
               End If
        Next

        For j = 1 To DataTable.GetSheet("Local2").GetRowCount
               If DataTable.GetSheet("Local2").GetParameter("TCID").ValueByRow( j )  = globalTCID Then
                     ' do the test for data in row nbr 'j'
                     MsgBox( globalTCID & "-- VIN  -----> " & DataTable.GetSheet("Local2").GetParameter("VIN").ValueByRow( j ) )
               End If
        Next
Next
Reply


Messages In This Thread
RE: Dependent iteration between global and localsheet - by kordirko - 10-24-2012, 02:53 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Object not found during the 2nd iteration of an Action call in a For loop BGunay 0 990 04-23-2020, 07:08 PM
Last Post: BGunay
  Reading Global Sheet's DataTable Value Bhuvana 0 1,675 01-05-2020, 10:03 PM
Last Post: Bhuvana
  Error as Global Not defined while trying to retrieve value from Datatable siddharth1609 0 986 09-11-2019, 02:52 PM
Last Post: siddharth1609
  UFT Tool runs more than one iteration always cthossain 2 3,826 02-12-2017, 01:25 PM
Last Post: cthossain
  global object which can be called in any action excellentpawan123 2 2,822 04-01-2015, 07:34 PM
Last Post: babu123

Forum Jump:


Users browsing this thread: 3 Guest(s)