FMX.Controls.Model.TDataModel.Data

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Data[const Key: string]: TValue read GetData write SetData;

C++

__property System::Rtti::TValue Data[const System::UnicodeString Key] = {read=GetData, write=SetData};

Properties

Type Visibility Source Unit Parent
property public
FMX.Controls.Model.pas
FMX.Controls.Model.hpp
FMX.Controls.Model TDataModel

Description

Value on the data model for the specified key.

Key is a string key providing assess to data Values in a presentation or in the TDataModel.DataSource collection.

When TDataModel changes a TDataModel.Data value the data model automatically sends notification messages with the MM_DATA_CHANGED ID to a presentation wrapping data in the TDataRecord format. If the specified value is nil, then model tries to remove this key-value pair from DataSource.

When TDataModel requests a value, then TDataModel automatically sends a request with the MM_GETDATA ID to a presentation wrapping data in the TDataRecord format. If a presentation returns an empty nil value, the model tries to get value from the DataSource.

See Also