I am currently trying to change properties for hug components depending on state of other component using what RTTI provide but i can't figure out how to retrieve all links between DataSource and DataAware components...
that's what i would like to achieve
- Get all components linked to specific DataSource something like.
- iterate through all those components.
if the component accept ReadOnly property (by using RTTI i guess) i would like to change the property depending on the DataSet state:
if DataSource.DataSet.state = dsbrowse then Component[i].ReadOnly := True
if DataSource.DataSet.state = dsEdit then Component[i].ReadOnly := False
thanks in advance for help