Hi,
I am having problem getting x, y coordinates for a cell in UltraWinGrid. I need these to perform Drag and Drop operation between two grids.
If anyone has come across this type of problem please help me out
Thanks,
Srini
Hi Srini,
This was an unknown limitation of the TestAdvantage UltraGridProxy that was resolved in the service release of TestAdvantage 2008 Volume 1 forward and in the release build of TestAdvantage 2010 Volume forward. In the stated releases you can now use : GetCellProperty(objRow, objColumn, strPropertyName)
using the following new properties :
"X" - X coordinate of the UltraGridCell UIElement "Y" - Y coordinate of the UltraGridCell UIElement "width" - width of the UltraGridCell UIElement "height" - height of the UltraGridCell UIElement
It should be stated that in the process of retrieving the property values it will bring the cell into view.
I hope this answers your question,
Hi Mike,
We are using TesAdvantage 2008 Vol3, but still getCellProperty is not returning the X and Y coordinates.
x = SwfWindow("windowName").SwfTable("tableName").getCellProperty("row","column","x")
But it returns the "width" and "height" values.
width = SwfWindow("windowName").SwfTable("tableName").getCellProperty("row","column","width")
Please help us on this.
Thanks
Rathish
Rathish,
Yes - 8.3.20083.1000 is an earlier build and you will need to download the service release.
Thanks Alan. I went to My IG- My Keys and downloads .. but am unable to find the service release. Could you please help me to find it.
I have looked at your profile and there aren't any keys registered to it and this is why you don't see the downloads. You will need to register your TestAdvantage 2008 Volume 3 key to have access to the service release downloads for that volume.
To register your license key, please go to the Product Registration page.Once your license key is registered, it should appear in the My Keys and Downloads page, thus allowing you to download service releases for that version of NetAdvantage.If you are unable to register your license key for some reason, such as that it is already registered to another user, please contact our Registrations department at the following email address: registrations@infragistics.com
Let me know if you have any questions with this matter.
Hi Alan,
I am trying to get the cell property values with "MsgBox SwfWindow("Window").SwfTable("Table").GetCellProperty("1","3","x")", but I am getting an error message as "IG : UltraGridColumn argument is not in the correct format of [N;Name]".
I am using TestAdvantage 2009-V2.
Please help me in this regards,
Thanks.
Hello,
Does it work if you remove the quotes from around the 3? For example:
MsgBox SwfWindow("Window").SwfTable("Table").GetCellProperty("1",3,"x")
This issue has been resolved as of the latest Service Release for TestAdvantage 2009 Volume 2 for QTP. You can download the Service Release by click the Account link at the top of the page and selecting Keys & Downloads from the left side of the page that loads. Select the TestAdvantage tab and then select TestAdvantage for Windows Forms 2009 Volume 2. You'll see the Service Releases listed on the Service Releases tab that appears at the bottom of the page.
Yes, I tried without quotes, but I got the below error message
IG : [GetCellProperty] : Unable to cast object of type 'System.Int16' to type 'System.String'.