TUniTable and TUniQuery, problem Master/Detail refresh
TUniTable and TUniQuery, problem Master/Detail refresh
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?
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?