Script with a custom condition launch point
A custom condition launch point associates a script with a custom condition and executes when the condition is satisfied. Use the Conditional Expression Manager application to configure the associated condition.
In the Conditional Expression Manager application, you can create conditional classes and expressions to restrict user access to fields, tabs, and other user interface controls. When you create a script with a custom condition launch point you specify the precise name of the condition that you create in the Conditional Expression Manager application.
Example of a custom condition launch point
You can use a custom condition launch point to restrict user access. For all users in a security group, for assets that have status of DECOMMISSIONED, the Assets application must not show the Spare Parts tab. You can define a custom condition launch point to evaluate the status of an asset record. You define the condition expression that starts the script and then define the signature option that controls access to the Spare Parts tab. You then associate the condition expression and signature option with the security group.To implement this requirement,
you complete the following steps:
- Define a custom condition launch point.
- Define the script that evaluates the status of an asset
record:
if(status=='DECOMMISSIONED'): evalresult=False else: evalresult=True
- Define the condition expression that invokes the script.
- Define the signature option that controls access to the Spare Parts tab.
- Associate the condition expression and signature option with the required security group.
- Test the complete configuration and activate or de-activate the launch point as required.