Specifying permissions The gadget spec URL could not be found
OrangeScape provides a comprehensive set of configuration elements to define visibility, editability, authorization at granular
field level for the forms depending on the workflow states, user and
data model references. Let's take a look at our template application to learn how permissions can be defined and used.
- When the customer form is displayed initially, "Save" and "Cancel" buttons are available.
- When the customer details are saved using the "Save" button, both of these options are removed; "Delete" and "Deactivate" button is displayed.
- When the "Deactivate" button is clicked, it is replaced with "Activate" button and vice-versa.
Let's have a look at how this functionality has been implemented.
 Conditions to be configured in the permissions
- "Save" and "Cancel" button
- Write: When? new customer
- Hide: When? existing customer
- Write: When? Existing customer and customer is active
- Hide: When? New Customer, or Existing customer and customer is inactive
- Write: When? Existing customer and customer is inactive
- Hide: When? New Customer, or Existing customer and customer is active
|
|
Specifying grid permissions |
|
|
|
Select the grid with the save and cancel button. These buttons should be displayed only when a new customer is being added.
|
|
|
|
Click on the permissions tab.
Click on the "X" mark below "Hide" to enable permissions.
"fx" formula button will now be displayed for "Hide".
It can be noted that we are defining the hide permissions as the default permissions. These permissions will be applied to all the activities. However, these could be overridden by specifying permissions for an individual activity such as draft, customer list or end.
Since these buttons must be displayed in draft activity, click on the "X" mark below "Write" to enable write permissions.
|
|
|
|
Specifying cell permissions |
|
|
|
Select the "Activate" button.
|
|
|
|
Click on the permissions tab.
Click on the "X" mark below "Hide" to enable permissions.
"fx" formula button will now be displayed for "Hide".
It can be noted that we are defining the hide permissions as the default permissions. These permissions will be applied to all the states. However, these could be overridden by specifying permissions for an individual activity such as draft, customer list or end.
|
|
|
 |
Click on the "fx" formula button for "Hide".
|
|
|
|
"Grid Cell Permissions" dialog box will be displayed.
Click on the add criteria "+" button.
- Select "CustomerStatus" from the public cell dropdown list.
- Select the option "Equals".
- Select the option "Value".
- Enter the value as "Active".
Click on the "Done" button.
Similarly, configure the permissions for deactivate and delete button.
|
|
EXERCISE
Explore the template application and review how the above mentioned permissions have been implemented
for "Delete" and "Deactivate" buttons.
|
|
|