10-22-2010, 11:48 PM
HI Jenny,
Try to implement accordingly by seeing the below example,you can do it easily.
Try to implement accordingly by seeing the below example,you can do it easily.
Code:
ExpectedPartyType="FD"
For m=1 to DataTable.GetSheet(dtGlobalSheet).GetParameterCount
If (DataTable.GetSheet(dtGlobalSheet).GetParameter(m).Name=ExpectedPartyType) And (DataTable.GetSheet(dtGlobalSheet).GetParameter(m).Value="ON") Then
For n=1 to Browser().Page().WebTable().Rowcount
CurrentPartyType=Browser().Page().WebTable().GetCellData(n,2)
If (CurrentPartyType=ExpectedPartyType) Then
Browser().Page().WebTable().ChildItem(n,1,"WebCheckBox",0).Set "ON"
Chk_Selected=True
Exit For
End if
Next
End if
If Chk_Selected=True then
Exit For
End if
Next