Difference between revisions of "Midware TMWTable"
Line 18: | Line 18: | ||
| width="140" valign="top" | [[Midware_TMWTable.Active | Active]] |||| Active property is TRUE when TMWTable is opened and FALSE when TMWTable is closed. | | width="140" valign="top" | [[Midware_TMWTable.Active | Active]] |||| Active property is TRUE when TMWTable is opened and FALSE when TMWTable is closed. | ||
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.AppSrvClient | AppSrvClient]] |||| To execute a request at design time, TMWTable need an TAppSrvClient component which will handle communication with MidWare application server. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.AutoCalcFields | AutoCalcFields]] |||| Set AutoCalcFields to control when the OnCalcFields event is triggered to update calculated fields during dataset processing. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.CanModify | CanModify]] |||| CanModify readonly property returns TMWTable ReadOnly value. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.Data | Data]] |||| Data property is a link to TMWBuffer component used to hold all data. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.FieldLayout | FieldLayout]] |||| FieldLayout property is used to describe columns content. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.FunctionCode | FunctionCode]] |||| FunctionCode and Params properties are the design time request. It's main purpose is to populate data aware controls link to TMWTable at design time. It can also be executed at runtime using ExecuteRequest. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.MWBufferFieldCount | MWBufferFieldCount]] |||| The number of fields. Based on FieldLayout property. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.ReadOnly | ReadOnly]] |||| ReadOnly property is used to get or set TMWtable read only status. See also CanModify. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.RecordSize | RecordSize]] |||| The record size property gives the size of the record. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.Params | Params]] |||| FunctionCode and Params properties are the design time request. |
|- | |- | ||
− | | valign="top" | [[Midware_TMWTable. | + | | valign="top" | [[Midware_TMWTable.TimeOut | TimeOut]] |||| When executing a request at design time, TMWTable will stop waiting for answer after Timeout seconds. |
|- | |- | ||
|} | |} |
Revision as of 11:47, 6 May 2011
Main page -> Midware component reference -> TMWTable
Overview
unit | MWdatSet.pas |
TMWTable component is much like standard Delphi TTable or TQuery components. TMWTable is used as an interface between data and your program or visual interface.
TMWTable is a TDataSet descendent so you can use it with data-aware controls such as TDBEdit and TDBGrid. Just like you use TQuery or TTable.
TMWTable is an interface that present MidWare communication buffer (TMWBuffer component) as a standard Delphi data table. It let you navigate thru all records and fields. You can and locate data, insert, delete or edit data. TMWTable has no storage for data: all data is stored in TMWBuffer component.
TMWTable has no knowledge of table structure. You must specify it using FieldLayout property. You can fill this property at design time if you know what it will be at runtime, or you may fill it at runtime once you know the value. The value may be known at runtime because your client application query the application server for field layout. You may also sent field layout in first record in result set, feed it to the property and then delete it from result set.
Properties
Active | Active property is TRUE when TMWTable is opened and FALSE when TMWTable is closed. | |
AppSrvClient | To execute a request at design time, TMWTable need an TAppSrvClient component which will handle communication with MidWare application server. | |
AutoCalcFields | Set AutoCalcFields to control when the OnCalcFields event is triggered to update calculated fields during dataset processing. | |
CanModify | CanModify readonly property returns TMWTable ReadOnly value. | |
Data | Data property is a link to TMWBuffer component used to hold all data. | |
FieldLayout | FieldLayout property is used to describe columns content. | |
FunctionCode | FunctionCode and Params properties are the design time request. It's main purpose is to populate data aware controls link to TMWTable at design time. It can also be executed at runtime using ExecuteRequest. | |
MWBufferFieldCount | The number of fields. Based on FieldLayout property. | |
ReadOnly | ReadOnly property is used to get or set TMWtable read only status. See also CanModify. | |
RecordSize | The record size property gives the size of the record. | |
Params | FunctionCode and Params properties are the design time request. | |
TimeOut | When executing a request at design time, TMWTable will stop waiting for answer after Timeout seconds. |