Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

The simplest way to pass data between the Client and Server, in either direction, is by mapping individual fields or groups of fields to the SRVROUTINE.  Values are passed to and from the SRVROUTINE based on position or using the optional PARAMETER_NAME value.

Info
It is important to note, when using a GROUP_MAP the associated group definition is not verified between the client and server. Fields in the group are mapped based on name.  Ensure you verify that the group definitions match, in terms of included fields, to ensure the expected data is passed and received as required.

For example, the following code WILL FAIL when it attempts to update a record in the file xEmployee. Why? The Client GROUP_BY is only passing Identification, Surname and Give Names to the server, therefore the additional fields specified in the corresponding GROUP_BY on the Server Module will have no value. When the UPDATE is attempted it will fail to pass the validation rules.

...