LassoScript Utility
Basics Browse Detail

[Error_ColumnRestriction]

Tag Link [Error_ColumnRestriction] Category Error
Type Substitution Source Available No
Support Synonym Version 5.0
Change Unchanged Data Source Any
Output Type String or Integer Security None
Implementation LCAPI Sets Lasso 8.5, Lasso 8.0, Lasso 7.0, Lasso 6.0, Lasso 5.0

Description

[Error_ColumnRestriction] returns the error code or error message associated with an error where the current user does not have permission to access a column in the current database action.

The value of this tag can compared against an error generated by Lasso or can be used to report an error.

Syntax

[Error_ColumnRestriction] [Error_ColumnRestriction-ErrorCode]

[If: (Error_ColumnRestriction) == (Error_CurrentError)] ... [/If]

[Error_SetErrorMessage: (Error_ColumnRestriction)]
[Error_SetErrorCode: (Error_ColumnRestriction-ErrorCode)]

Parameters

Optional Parameters
-ErrorCode If specified the error code is returned. Otherwise the error message is returned.

Examples

To check whether the current error was a column restriction error:

Compare the [Error_CurrentError] tag with the [Error_ColumnRestriction] tag. If they match then a column restrriction error has occured.

[If: (Error_ColumnRestriction) == (Error_CurrentError)]
  <br>A column restrriction error has occurred.
[/If]

<br>A column restrriction error has occurred.