UIPageContext#
Description#
Used to resolve UIPage Exceptions for UI Actions (e.g. Material.Trackin for a specific context)
Fields#
The UIPageContext table has the following fields:
| Field | Description | Key | Mandatory | Comments |
|---|---|---|---|---|
| Action | Yes | Yes | ||
| PrimaryRole | Yes | No | ||
| Facility | Yes | No | ||
| Area | Yes | No | ||
| Step | Yes | No | ||
| Resource | Yes | No | ||
| ResourceProcessingType | Yes | No | ||
| Page | No | No | ||
| BusinessRule | No | No |
Table: UIPageContext fields
Some specific actions are pointing to predetermined UI Pages by default:
| Action | UI Page |
|---|---|
| MyWorkgroup.MyWorkgroup | MyWorkgroupView_Cluster |
| FabExplorer.ResourceView | ResourceView_Cluster |
| FabExplorer.StepView | StepView_Cluster |
| FabExplorer.AreaView | AreaView |
Table: Predefined UI Page Contexts
To override this default behavior, it is possible to use indirection by adding entries on the smart table using {ACTION_NAME}.View as an action identifier. For example, adding:
| Action | UI Page |
|---|---|
FabExplorer.ResourceView.View | CustomResourceView01 |
FabExplorer.AreaView.View | CustomAreaView01 |
Table: Indirection in UIPageContext
The first entry will override the navigation to the CustomResourceView01 UI Page instead of ResourceView_Cluster. Note that you can also override action FabExplorer.ResourceView directly, however this indirection will NOT take into account the Resource Processing Type and all other UI Pages that are included in the defined ResourceView would redirect always to the defined UI Page instead of ResourceStorageView or ResourceConsumableFeedsView. In light of this, new virtual actions suffixed with .View were added for these 3 special cases.
Precedence Keys#
The search precedence rules are the following:
- Action, Resource
- Action, PrimaryRole, Area, ResourceProcessingType
- Action, PrimaryRole, Facility, ResourceProcessingType
- Action, Area, ResourceProcessingType
- Action, Facility, ResourceProcessingType
- Action, PrimaryRole, ResourceProcessingType
- Action, ResourceProcessingType
- Action, PrimaryRole, Step
- Action, PrimaryRole, Facility
- Action, PrimaryRole
- Action, Area
- Action, Facility
- Action