Wrong record is returned from Grid when sorted in UI

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:

Wrong record is returned from Grid when sorted in UI

Post by brianhd71 »

Capture.PNG
Capture.PNG (88.05 KiB) Viewed 415 times
I'm getting the wrong record returned when sorted and can't see where this grid is any different from grids that return the correct record. See above. If I select, for instance, the fourth row SAFEWAY TEST
the program returns a subfile record number of 4 with no problems. But, if I sort one of the columns, in this case Name, and click on TEST FOR KRAFT I still get a record number of 4 with SAFEWAY TEST returned. See below.
When I debug grids that return the correct record, the return number is different than the row number clicked.
Capture2.PNG
Capture2.PNG (103.98 KiB) Viewed 414 times
I've even tried recreating the display from scratch just to see if some got garbled in the original, but that didn't help.
Attachments
json.txt
(350.46 KiB) Downloaded 61 times
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Wrong record is returned from Grid when sorted in UI

Post by Scott Klement »

Just to make sure I understand... the problem is iwth the #HSRRN field, correct? It's coming back correct when the subfile has not been sorted, but if you sort it it's giving the wrong result.

Do I understand correctly?
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: Wrong record is returned from Grid when sorted in UI

Post by brianhd71 »

Yes.
Scott Klement
Experienced User
Posts: 2711
Joined: Wed Aug 01, 2012 8:58 am
First Name: Scott
Last Name: Klement
Company Name: Profound Logic
City: Milwaukee
State / Province: Wisconsin

Re: Wrong record is returned from Grid when sorted in UI

Post by Scott Klement »

I think I see the problem here. You have the "return cursor" property set at the record-format level. There seems to be a bug in the "return cursor" support that it's overriding the value calculated for the "cursor record number" property with the physical row number on the display.

I will fix this for our next release.
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: Wrong record is returned from Grid when sorted in UI

Post by brianhd71 »

Cool. Thanks for looking at it.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests