Page 1 of 1
TUniTable and TUniQuery, problem Master/Detail refresh
Posted: Wed 21 Oct 2009 18:56
by ericalves
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?
Posted: Fri 23 Oct 2009 10:10
by ericalves
Please I need help. I'm doing a migration BDE -> UniDAC and caught in the Master / Detail.
Posted: Fri 23 Oct 2009 10:59
by Plash
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?
Posted: Fri 23 Oct 2009 13:04
by ericalves
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?
Posted: Tue 27 Oct 2009 09:30
by Plash
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.