Difference between revisions of "Midware TMWTable"
Line 13: | Line 13: | ||
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. | 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 == | ||
+ | {| | ||
+ | | width="140" valign="top" | [[Midware_TMWTable.Banner | Banner]] |||| The banner property is the text that is sent to the client when the connection has been established. Default value is 'Welcome to MidWare server'. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.ClientCount | ClientCount]] |||| Gives the actual number of connected clients. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.ClientCountLabel | ClientCountLabel]] |||| If assigned, this property will be used by TAppServer component to display the number of client connected. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.ClientTimeout | ClientTimeout]] |||| ClientTimeout gives the time in seconds before the server disconnect a client without activity. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.ClientWSocket | ClientWSocket]] |||| ClientWSocket is a run-time read-only indexed property whose value is the reference to each connected client TClientWSocket component. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.ConnectCount | ConnectCount]] |||| ConnectCount gives the total number of connection received since server startup. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.DisplayMemo | DisplayMemo]] |||| If assigned, this property will be used by TAppServer component to display messages during work. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.Handle | Handle]] |||| The Handle property is the windows handle for the hidden window the component uses for internal messages | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.Options | Options]] |||| Options are used by TAppServer to modify behaviour. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.Port | Port]] |||| The port property gives the port number or service name used by the server to listen for client connection. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.RequestBroker | RequestBroker]] |||| The server component receive client requests, data parameters and send replies to client. | ||
+ | |- | ||
+ | | valign="top" | [[Midware_TMWTable.RequestCount | RequestCount]] |||| RequestCount gives the total number of requests received since server startup. | ||
+ | |- | ||
+ | |} |
Revision as of 10:09, 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
Banner | The banner property is the text that is sent to the client when the connection has been established. Default value is 'Welcome to MidWare server'. | |
ClientCount | Gives the actual number of connected clients. | |
ClientCountLabel | If assigned, this property will be used by TAppServer component to display the number of client connected. | |
ClientTimeout | ClientTimeout gives the time in seconds before the server disconnect a client without activity. | |
ClientWSocket | ClientWSocket is a run-time read-only indexed property whose value is the reference to each connected client TClientWSocket component. | |
ConnectCount | ConnectCount gives the total number of connection received since server startup. | |
DisplayMemo | If assigned, this property will be used by TAppServer component to display messages during work. | |
Handle | The Handle property is the windows handle for the hidden window the component uses for internal messages | |
Options | Options are used by TAppServer to modify behaviour. | |
Port | The port property gives the port number or service name used by the server to listen for client connection. | |
RequestBroker | The server component receive client requests, data parameters and send replies to client. | |
RequestCount | RequestCount gives the total number of requests received since server startup. |