Hi Graeme. Thanks for your answer.
I still have another question.
In a form I have a TContactList being shown on a TListView, and a mediator
for a TTelephoneList, owned by a TContact, that is shown in a String Grid.
To set the subject of Telephone list mediator, I'm using the OnChange event
of TListView as folowing:
var
loContato: TContato;
begin
if not Assigned(FTelMediator) then
begin
FTelMediator := TtiModelMediator.Create(Self);
FTelMediator.AddComposite(Format(cTelefonesGridCols, ['Tipo Telefone',
'Telefone']), gridTelefones);
end;
loContato :=
TContato(TtiListViewMediatorView(FMediator.FindByComponent(lvwContatos).Mediator).SelectedObject);
if loContato <> nil then
begin
FTelMediator.Subject := loContato.Telefones;
FTelMediator.Active := True;
end;
end;
Does the framework has a better way to handle with this?
I couldn't find anotyher way.
Thanks.
------------------------------------------------------------------------------
_______________________________________________
tiOPF-talk mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/tiopf-talk