When trying to use setcelldata on ultragrid i get a message "The supplied UltraGridRow argument [0] is not one of the expected type(s) : String or Int16" - i saw a similar problem in this threadhttps://ko.infragistics.com/community/forums/f/test-automation-for-micro-focus-uft-windows-forms/22461/how-i-get-value-as-text-with-getcelldata-in-swftable#82082
but cstr did not help
record brought the following code:
SwfWindow("win1,").SwfTable("SwfTable_2").ActivateCell "0","psv_msr"SwfWindow("win1,").SwfTable("SwfTable_2").DoubleClickCell "0","psv_msr"SwfWindow("win1,").SwfTable("SwfTable_2").SetCellData "0","psv_msr","100"
replay double clicked the cell but did not fill it, I noticed you had an old bug that might be relevant
https://ko.infragistics.com/community/forums/f/retired-products-and-controls/22550/get-a-selected-value-of-a-cell-in-a-ultragridweb
any help would be appreciated
Amitai
(using QTP 11 with TA version free (10.3)
Hello,
I had a similar issue. I used this to resolve:
For i=0 to RowCount Print i CellData = SwfWindow("G2").SwfWindow("Accounts").SwfTable("navGrid").GetCellData(CInt(i),2) If CellData =ID Then 'activate the row for the matching ID SwfWindow("G2").SwfWindow("Accounts").SwfTable("navGrid").ActivateRow(CInt(i)) Exit for End Ifnext
Is there any support for the below issue? Table.activateRow(1)
com.hp.lft.sdk.GeneralReplayException: IG : The supplied UltraGridRow argument [1] is not one of the expected type(s) : String or Int16
We are using LeanFT with infragistics add-on for UFT. Appreciate your help.