Post then Refresh different under 5.3.10
Posted: Thu 07 Aug 2014 05:09
Hello,
I was using 4.6 of UniDac and now am on 5.3.10
I have noticed a change of behaviour with Append..Post..Refresh.
The 4.6 version's behaviour was as follows.
A tDBGrid is showing a table's values, in this case, a Waiting List of Patients. A patient is added via a select list, then the code does a uniquery.append, sets the fields then does a uniquery.post. It then calls Uniquery.refresh.
The record just added is highlighted and appears in the correct place in the list, eg, if the list is alphabetical, and the list was Abbot, Costello and Smith, and we added Jones, the list is now Abbot, Costello, Jones and Smith, importantly, with Jones highlighted.
Under 5.3.10, same code, Jones is still added in the correct place, but the highlight is now on the first record, in this case, Costello.
If we then scroll down a couple of records, and click a Refresh Button which simply calls uniquery.refresh, all works the same way as it did under 4.6.
It is causing a lot of problems since they then have to search for the newly added person in the list.
Any one had this problem or know of a setting that has changed
Thanks
AL
I was using 4.6 of UniDac and now am on 5.3.10
I have noticed a change of behaviour with Append..Post..Refresh.
The 4.6 version's behaviour was as follows.
A tDBGrid is showing a table's values, in this case, a Waiting List of Patients. A patient is added via a select list, then the code does a uniquery.append, sets the fields then does a uniquery.post. It then calls Uniquery.refresh.
The record just added is highlighted and appears in the correct place in the list, eg, if the list is alphabetical, and the list was Abbot, Costello and Smith, and we added Jones, the list is now Abbot, Costello, Jones and Smith, importantly, with Jones highlighted.
Under 5.3.10, same code, Jones is still added in the correct place, but the highlight is now on the first record, in this case, Costello.
If we then scroll down a couple of records, and click a Refresh Button which simply calls uniquery.refresh, all works the same way as it did under 4.6.
It is causing a lot of problems since they then have to search for the newly added person in the list.
Any one had this problem or know of a setting that has changed
Thanks
AL