Hi,
I have a datagrid with a checkbox column.
When user unchecks the checkbox a warning dialog will be displayed.
for unselecting, I am using the following code
thegrid.SetNAProperty("rows["&rowNumber &"].Cells[cell1].Value", FALSE)
the moment this statement executes, I get the warning dialog and the execution is blocked at this statement.
Can anyone let me know, how can I call this statement asynchronously so that the execution doesnt get blocked at this statement.
Thanks,
Satish
Hi Michael,
Thanks for the work around. It worked perfectly.
Though it is not the ideal solution as you were saying, it served the purpose.
Thank you very much once again.
Please let me know any updates about the new feature you were discussing in the earlier replies.
While not ideal, with TestAdvantage version 10.2, being the column is a checkbox column you should be able to use Click to trigger the event asynchronously. You will likely need to verify the value ahead of time with GetCellData, and you need to know if the column allows null values, to determine how often you will need to click it to get the value required but the end result is it should work.
That being said, the next thing you need to to is to bring the cell into view, and get the X,Y,width and height of the cell so that you can get a valid click point.
Set grid = SwfWindow("Form1").SwfTable("ultraGrid1")row = 8col = "checkbox"
grid.ActivateCell row ,col ' Brings cell into viewx = grid.GetCellProperty(row ,col, "X")y = grid.GetCellProperty(row, col, "Y")width = grid.GetCellProperty(row, col, "width")height = grid.GetCellProperty(row, col, "height")ptX = x+(width/2)ptY = y +(height/2)
grid.Click ptX, ptY
Again, while not the ideal solution, you should be able to paste this in, or make a viable procedure from a code snippet like this so that you just need call one line of code.
Let me know if this works for you,
Thanks for your quick reply.
I am using QTP 10 and test advantage version 2010.2.
Net advantage and test advantage versions are in sync.
This is something we are looking into, that is, giving people the ability to modify synchronization of an action. But likely this will be a new feature for TestAdvantage 11.2 or TestAdvantage 12.1, and unfortunately may not be able to be implement on previous versions, due to the nature of the change.
As to how to get by the issue that you are facing now, what version of TestAdvantage are you using? The reason being the resolution may likely depend on the version.