Componentes.Terceros.RemObj.../official/5.0.23.613/Data Abstract for Delphi/Samples/Calculated Fields/CalcFields.Sample.html

32 lines
905 B
HTML

<html>
<head>
<link rel="stylesheet" type="text/css" href="..\styles.css">
</head>
<body>
<img src="..\..\da.png" alt="" align=right>
<!-------------------------------------------------------------------------->
<p class="h1">
Calculated Fields Example
</p>
<h2>Purpose</h2>
<p>
This example shows how to handle calculated fields server side and client
side.
</p>
<h2>Examine the Code</h2>
<p>
<b>Server side</b> fields are processed via the <b>BinAdapter's OnWriteFieldValue</b>
event handler (see <b>CalcFieldsService_Impl</b>).
</p>
<p>
On the <b>client side</b>, they are handled as you would expect via <b>dtCustomers.OnCalcFields</b>
(see <b>CalcFields_ClientData</b>). Note though, how the client field actually references
the server value.
</p>
<!-------------------------------------------------------------------------->
</body>
</html>