Page 1 of 1

Multiple drag & drop records

Posted: Wed Aug 19, 2015 4:30 pm
by brianhd71
Is there any way to get a list of relative record numbers when doing a drag and drop? I only see the last record selected from the variable bound to the dd record number property.

Re: Multiple drag & drop records

Posted: Wed Aug 19, 2015 5:38 pm
by Alex
If the grid you're dragging records from is set up with, row selection = multiple, selection field, and selection value, then you RPG code can read changed records from the subfile and test the bound selection field to get the list of selected records.

Re: Multiple drag & drop records

Posted: Thu Aug 20, 2015 11:01 am
by brianhd71
Yes, that's what I am doing, but the READC works only part of the time.

Re: Multiple drag & drop records

Posted: Fri Aug 21, 2015 12:34 pm
by brianhd71
Alex, I did what you suggested by using chain and checking the selection field (favSelect) for a '1'. It works for multiple drag & drop, but when I drag a single item, favSelect remains blank.

Re: Multiple drag & drop records

Posted: Mon Aug 24, 2015 3:11 pm
by Alex
I believe the solution is to check both the bound "selection field" on the grid within a loop and the "dd record number".