Multiple drag & drop records

Use this board to ask questions or have discussions with other Rich Displays users.
Post Reply
brianhd71
Profound User
Posts: 36
Joined: Thu Jan 02, 2014 6:20 pm
First Name: Brian
Last Name: Lannoye
Company Name: Dealertrack Technologies
Phone: 801.617.1806
State / Province: Utah
Zip / Postal Code: 84095
Country: United States
Contact:

Multiple drag & drop records

Post 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.
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: Multiple drag & drop records

Post 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.
brianhd71
Profound User
Posts: 36
Joined: Thu Jan 02, 2014 6:20 pm
First Name: Brian
Last Name: Lannoye
Company Name: Dealertrack Technologies
Phone: 801.617.1806
State / Province: Utah
Zip / Postal Code: 84095
Country: United States
Contact:

Re: Multiple drag & drop records

Post by brianhd71 »

Yes, that's what I am doing, but the READC works only part of the time.
Attachments
puiREADC.txt
(4.71 KiB) Downloaded 100 times
json.txt
(38.37 KiB) Downloaded 303 times
brianhd71
Profound User
Posts: 36
Joined: Thu Jan 02, 2014 6:20 pm
First Name: Brian
Last Name: Lannoye
Company Name: Dealertrack Technologies
Phone: 801.617.1806
State / Province: Utah
Zip / Postal Code: 84095
Country: United States
Contact:

Re: Multiple drag & drop records

Post 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.
User avatar
Alex
Profound Logic Staff Member
Posts: 233
Joined: Fri Jan 04, 2008 12:10 pm
First Name: Alex
Last Name: Roytman
Company Name: Profound Logic Software
Contact:

Re: Multiple drag & drop records

Post 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".
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests