Page 1 of 1
Wrong record is returned from Grid when sorted in UI
Posted: Thu Sep 11, 2014 2:42 pm
by brianhd71
- Capture.PNG (88.05 KiB) Viewed 410 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 (103.98 KiB) Viewed 409 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.
Re: Wrong record is returned from Grid when sorted in UI
Posted: Thu Sep 11, 2014 9:52 pm
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?
Re: Wrong record is returned from Grid when sorted in UI
Posted: Fri Sep 12, 2014 10:45 am
by brianhd71
Yes.
Re: Wrong record is returned from Grid when sorted in UI
Posted: Fri Sep 19, 2014 6:13 pm
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.
Re: Wrong record is returned from Grid when sorted in UI
Posted: Wed Sep 24, 2014 10:56 am
by brianhd71
Cool. Thanks for looking at it.