Post then Refresh different under 5.3.10

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
Aldwado
Posts: 6
Joined: Thu 07 Aug 2014 04:50

Post then Refresh different under 5.3.10

Post by Aldwado » 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

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Post then Refresh different under 5.3.10

Post by ViktorV » Thu 07 Aug 2014 11:09

I can't reproduce the problem. Please try to compose a small sample to demonstrate the problem and send it to viktorv*devart*com.

Aldwado
Posts: 6
Joined: Thu 07 Aug 2014 04:50

Re: Post then Refresh different under 5.3.10

Post by Aldwado » Fri 08 Aug 2014 00:27

Hi Victor,
So when you did it, the newly added record was the highlighted one after
Uniquery.append;
< assign fields >
Uniquery.post;
Uniquery.refresh;

I am connecting to Sybase SQL Anywhere data base via ODBC.
Can I 'go back' to 4.6 to do further testing?
Also, I am not sure how I can send you a small sample.
Does SmartRefresh settings have anything to do with it. I have left all
options as standard, except fetch all, which I tried with true and False, but with the same results.

AL.....

ViktorV
Devart Team
Posts: 3168
Joined: Wed 30 Jul 2014 07:16

Re: Post then Refresh different under 5.3.10

Post by ViktorV » Fri 08 Aug 2014 07:20

Please send a complete sample to alexp*devart*com to demonstrate the issue, including a script to create and fill a table.

Post Reply