Hi Team,
I have a step were in i need to select multiple rows, DRAG them and DROP it to another swftable object.
Is there any properties were in i can perform this operation.
Hello Ravindra,
If I understand well your scenario, I think that there are no such kind of property, because there are not such kind functionality in our controls. Lets take an example with two UltraGirds and Drag and Drop rows from the first grid into second grid. If you want to achieve this behavior, you should handle few events and write your own code that will do this in your application. If you want to test your drag and drop behavior into your test enviroment, you should duplicate the code from your application into your test enviroment, but I think that this will be more complicated and I`m not sure is it possible.
Please take a look at the attached video for more details.
Regards
If you need any additional assistance with this scenario, please fill free to contact me. Regards
Could you please try this approach below where I`m using Drag / Drop methods. For example:
// Select the rows from the first grid
SwfWindow("Form1").SwfTable("ultraGrid1").ActivateRow "0;0;0"
SwfWindow("Form1").SwfTable("ultraGrid1").SelectRow "0;0;0"
// Specify the coordinates of the row
SwfWindow("Form1").SwfTable("ultraGrid1").Drag 31, 123
//Specify the coordinates in the new location
SwfWindow("Form1").SwfTable("ultraGrid2").Drop 69, 175
//Select and Activate the object at the new location
SwfWindow("Form1").SwfTable("ultraGrid2").ActivateRow "0;0;0;0"
SwfWindow("Form1").SwfTable("ultraGrid2").SelectRow "0;0;0;0"
// Repeat the same for next object
SwfWindow("Form1").SwfTable("ultraGrid1").ActivateRow "0;0;1"
SwfWindow("Form1").SwfTable("ultraGrid1").SelectRow "0;0;1"
SwfWindow("Form1").SwfTable("ultraGrid1").Drag 31, 141
SwfWindow("Form1").SwfTable("ultraGrid2").Drop 69, 195
SwfWindow("Form1").SwfTable("ultraGrid2").ActivateRow "0;0;0;1"
SwfWindow("Form1").SwfTable("ultraGrid2").SelectRow "0;0;0;1"
Please note that sometimes you could get error due to not enough time. In this case you could add in the script Wait(5) action. Other approach could be if you remove these two actions:
Please let me know if you have any questions.