Basic Building Blocks (Magic xpa 4.x)
A Magic xpa task is built in three basic sections: the Data View, Logic, and Forms. In a Rich Client task:
- 
Data View is built on the server.
 - 
The Forms interact with the user.
 - 
Some Logic handlers execute on the server, some on the client, and some are mixed.
 
We'll take a look at each of these sections in turn.
However, variables, functions, user functions, and expressions are used in all of these sections.
- 
Variables are declared in the Data View. Usually they are neutral, but some are server-side.
 - 
Functions are built-in to Magic xpa, and by their nature are client-side, server-side, or Neutral.
 - 
User functions are created by you, the developer, and their side depends on the operations and variables they use.
 - 
Expressions are built using the items above. These are especially important because they are used in properties all over the task, in Ranges, Inits, Conditions, Controls, and Forms.