Example based on code from ODAC help ("Master/Detail Relationships")
"...how to bind two TCustomOraDataSet components (TOraQuery, TSmartQuery, TOraTable or even TOraStoredProc) into MD relationship via parameters."
Code: Select all
Master.SQL.Text := 'SELECT * FROM Department';
//...
Detail.SQL.Text := 'SELECT XXXnameXXX FROM Employee WHERE Dept_No = :Dept_No';
// ...
MasterSource.DataSet := Master;
Detail.MasterSource := MasterSource;
Change between original code is that i don't like to "SELECT *"
Code like this works fine
But if I haven't selected field "Dept_No" and want to use "Dept_No" inside "Update SQLs" there is a problem...
I just don't want to select this column at all but use value from "main Params" just because of effectiveness
But it seems that "update Params" are different from "main Params"
And there are all params binded with fields but no params from TOraQuery.Params
So...
1. Am I right and there are different "Params" during update / insert / etc?
2. Is there a way to add this param manually? Or there is some automated solution? Or is it possible to enable using "main Params"?