LassoScript Utility
Basics Browse Detail


Tag Link [Error_FieldRestriction] Category Error
Type Substitution Source Available No
Support Preferred Version 3.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, Lasso 3.x


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

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


[Error_FieldRestriction] [Error_FieldRestriction-ErrorCode]

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

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


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


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

Compare the [Error_CurrentError] tag with the [Error_FieldRestriction] tag. If they match then a field restriction error has occured.

[If: (Error_FieldRestriction) == (Error_CurrentError)]
  <br>A field restriction error has occurred.

<br>A field restriction error has occurred.