TUniTable and TUniQuery, problem Master/Detail refresh

Discussion of open issues, suggestions and bugs regarding UniDAC (Universal Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
ericalves
Posts: 9
Joined: Wed 21 Oct 2009 18:53

TUniTable and TUniQuery, problem Master/Detail refresh

Post by ericalves » Wed 21 Oct 2009 18:56

I have a problem with a register using master / detail. When completed a field (FOREIGN KEY) should bring in DBEdit (connected to Detail) a description of this record in your source table, but does not seek to verify the TUniTable used as Detail, found that its this RecordCount = 0. I tried to give a Close / Open in TUniTable more after completing the field FOREIGN KEY and then brought the correct value for the DBEdit TUniTable and got RecordCount = 1. I changed the properties of both TUniQuery (Master) and TUniTable (Detail) and can not resolve the problem without using the Close / Open in TUniTable, what should I do?

ericalves
Posts: 9
Joined: Wed 21 Oct 2009 18:53

Post by ericalves » Fri 23 Oct 2009 10:10

Please I need help. I'm doing a migration BDE -> UniDAC and caught in the Master / Detail.

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Fri 23 Oct 2009 10:59

I don't exactly understand the problem.

Please describe step by step the operations that you perform.

What result do you expect and what result do you actually get?

ericalves
Posts: 9
Joined: Wed 21 Oct 2009 18:53

Post by ericalves » Fri 23 Oct 2009 13:04

I have a record that has a foreign key in table 'Medic', I need to select the code medic (in a DBEdit) down through TUniTable (On the Data source of TUniQuery the register through the property MasterSource) relating to the field name of the doctor (in a dbText), but with this TUniTabela RecordCount = 0, it displays the name of the doctor only when I give a refresh in TUniTable (after filling in the code of the doctor). Is there any property that remove this filter TUniTable? To not come with recordcount = 0?

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Tue 27 Oct 2009 09:30

We could not reproduce the problem. Please send to support*devart*com a complete small sample that demonstrates the problem, including the script for creating database objects.

Post Reply