Appboard/old/shim expressions

Revision as of 11:13, 17 July 2014 by imported>Jason.nicholls (→‎SHIM Reference)

In many cases, you will want to pass a parameter value into a query rather than using a static query definition. AppBoard provides a system of variable expressions, called SHIM, that can be used for this purpose. This page reviews the concepts of using SHIM expressions and provides some examples.


Inserting SHIM Expressions

There are a number of input fields in AppBoard that allow the insertion of SHIM expressions. To see if a SHIM expression can be inserted, click in an edit box and check to see if the "Insert Expression" button is displayed and clickable in the footer bar.

Perform the following steps to insert a SHIM expression:

  1. Click in an edit box at the location where you want to insert an expression
  2. Select Insert Expression
  3. Click the tab label to select from one of the available options:
    1. Access Control Variable - Allows you to insert a custom variable that you have configured for the system. For more information on this option, see configuring Access Control Variables
    2. Basic User Info - Will insert a pre-defined SHIM expression related to the attributes of the current User. Select the variable to be inserted from the list:
      1. username - Apply the User's id in the selected location when data is accessed
      2. password - Apply the User's password in the selected location when data is accessed
      3. domain - Apply the User's domain in the selected location when data is accessed
      4. rolename - Apply the User's current role in the selected location when data is accessed
      5. rolepath - Apply the User's current hierarchical role path in the selected location when data is accessed
    3. Date - Build a date function to apply in the selected location when data is accessed
    4. Input Parameter - Apply a value for a named variable in the selected location when data is accessed
      1. Input Name - The name of the variable to be replaced in the expression
      2. Default Value - The initial value to use for the variable in the expression, unless/until the value is overridden by an Action or another process
    5. Click Apply and observe the SHIM expression that was generated and inserted in the location where you added the expression.


SHIM Reference

A reference guide listing many available SHIM functions is available on the SHIM reference page.