Onload Disable

You can apply this task to display the component or element as inactive (disabled) after the application loads the related page. For example:- You can use this task to display the Create User button as inactive or disabled after the non-administrator user accesses the application.

To configure the Onload Disable task:

  1. In the Events dialog box, scroll down.
  2. Under Add Tasks, click the Select Task list, and then select ONLOAD_DISABLE task.
  3. Click Add Task Config, and the Add Task dialog box opens.
  4. In the Add Task dialog box, click the Configuration area to expand it.
  5. In the Configuration area, click Add BRE, and the Add BRE/Edit BR dialog box opens.
  6. In the Add BRE/Edit BR dialog box, perform the following functions:
FieldDescription
BR NameIn this field, enter the business rule’s name.
DescriptionIn this field, you can enter a brief description of the task, although this field is optional.
BR StatementIn this field, enter the business rule condition.

#Sample Business Rule Condition
getVal(“tempObject.userid”) == 123

When the business rule related to the above condition is executed, it checks the user ID. If the user ID is “123”, the application displays the Create User button as inactive or disabled to the user who logged in to the system by using the “123” (non-admin user ID).
Success Message
(Optional Step)
Click this list and then select the message that the application will display after the business rule’s condition is satisfied.

Before you select the message in the Success Message list, you need to define the message in the Message Master module. You can access the Message Master module on the Vahana portal’s dashboard.
Failure Message
(Optional Step)
Click this list and then select the message that the application will display after the business rule’s condition is not satisfied.

Before you select the message in the Failure Message list, you need to define the message in the Message Master module. You can access the Message Master module on the Vahana portal’s dashboard.
  1. After you define the business rule, click Submit to configure the business rule.
  2. On the Add Task dialog box, click Submit to configure the ONLOAD_DISABLE task.
Was this article helpful?
YesNo