This tutorial is for the new, online project designer. The tutorial for the Desktop Designer is available
here
.
The Logic point can be used to add conditional logic to your projects that can show/hide points and store a value when the conditions have been met. This point is especially useful in hiding points until another pre-requisite point has been completed or to display additional information if a point has a specific value.
By default, the Logic point does not save any data to the session. This feature can be enabled from the
General
tab, in the Logic point's properties window, by ticking the
Include in Data
checkbox. If this option is enabled, you will also be required to assign the point with an
ID Name
on the same tab.
The Logic point can be configured in the Mobile Data Anywhere Designer to customise the behaviour of the point. See below for details on each of this point's properties.
The first section of the properties window allows you to create logical conditions which can be used to show/hide points and change the output value of the Logic point. Each condition has three fields which can be set. From left to right:
Two conditions can be added to a Logic point with the option to require both conditions to be met,
by ticking the
And
checkbox, or to require only one of the two conditions to be met, by ticking the
Or
checkbox.
When using the
Advanced Logic
style, you can create as many conditions as desired. This new style provides the ability to create
multiple joined conditions and introduces the ability to create groups of conditions that can also be
joined together - similar to a mathematical equation and parenthesis.
This is where you can select which points will become visible when the Logic point's conditions are met. To select a point, double click on the point in the list. Each select point will automatically be set to invisible when the condition is not met and will change to visible when the condition is met.
These settings determine the output value of the Logic point, which can be stored in the session data or used in other points, such as another Logic point. There are three optional output values that can be set for a Logic point which are used for each of the three states of a Logic point:
Only one output value will be used at one time and the value can be completely customised or can be selected
from a list of pre-defined values such as;
Yes/No, True/False, 1/0
.
True
If the result of the conditions is
True
then this output will be used.
False
If the result of the conditions is
False
then this output will be used.
Indeterminate
This option will be used if the result of the conditions cannot be determined, either due to an empty target point value or
incompatile value type. This is called the
Indeterminate
state.
The
Basic Points Sample
project contains examples of how to use many of the various points that are available. This project also contains a
page that demonstrates some of the ways that this point can be used in your projects.