I'm using QTP 10 with TestAdvantage 2008 Vol. 2 working on an Infragistics SwfTable.
I know how to retrieve the error text from the end of a row. What I don't know is how to retrieve the error text from different columns in a single row. Can anyone help??
This is what I use to retrieve the error text from the end of a row:
Dim x x = SwfWindow("Bonus Administrator 2010").SwfTable("BranchWorksheetGrid").GetNAProperty("Rows[1].ListObject.Row.RowError")If Len(Trim(X)) > 0 ThenReporter.ReportEvent 0, "The error text is", xElseReporter.ReportEvent 1, "The error text is", xEnd If
Thanks in Advance,
FredMan
Modifying the logic Alan supplied above for a gris bound to a DataSet, rather than a DataTable:
Dim dtrows Set dtrows = SwfWindow("Form1").SwfTable("ultraGrid1").Object.DataSource.Tables.Item(0).RowsDim dtitemSet dtitem = dtrows.Item(1)Dim erer = dtitem.GetColumnError(1)MsgBox er
Note that I used a numerical index on the Item object. I tried using the underlying Datatable's string key, but that wasn't working in my tests.
Hello,
I recently helped a colleague with logic to get this when bound to a DataTable. This is what we came up with:
Dim dtrowsSet dtrows = SwfWindow("Form1").SwfTable("ultraGrid1").Object.DataSource.RowsDim dtitemSet dtitem = dtrows.Item(1)Dim erer = dtitem.GetColumnError(1)MsgBox er
Let me know if you have any questions with this matter.
Alan
Any takers??
I can't believe that no one has come across this issue.