UIPageContext#
Description#
Used to resolve UI Page exceptions for UI actions such as Material.TrackIn in 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
Out-of-the-Box Action IDs#
Use the following action IDs in the Action field of a UIPageContext record. Some actions select a page based on context, while others override a specific page. For Resource View, use the dedicated override actions to preserve selection by Resource Processing Type.
| Action ID | Default UI Page or behavior |
|---|---|
MyWorkgroup.MyWorkgroup | Opens MyWorkgroupView_Cluster. |
FabExplorer.ResourceView | Opens Resource View and selects the UI Page based on the Resource Processing Type. A direct override bypasses this selection. |
FabExplorer.ResourceView.View | Overrides ResourceView_Cluster and preserves routing by Resource Processing Type. |
FabExplorer.ResourceStorageView | Overrides ResourceStorageView. |
FabExplorer.ResourceConsumableFeedsView | Overrides ResourceConsumableFeedsView. |
FabExplorer.StepView | Opens StepView_Cluster. |
FabExplorer.AreaView | Opens AreaView. |
FabExplorer.AreaView.View | Overrides AreaView. |
Material.TrackIn | Opens the Track-In Material wizard. |
Table: Out-of-the-box action IDs
Override Examples#
For the actions in the following example, add a record to the UIPageContext Smart Table with {ACTION_NAME}.View in Action and the custom UI Page in Page.
| Action | UI Page |
|---|---|
FabExplorer.ResourceView.View | CustomResourceView01 |
FabExplorer.AreaView.View | CustomAreaView01 |
Table: Indirection in UIPageContext
Override Resource View#
Resource View selects an out-of-the-box UI Page based on the Resource Processing Type. FabExplorer.ResourceView.View overrides ResourceView_Cluster. The storage and consumable feeds views have their own action IDs. To use the same custom UI Page for all three views, add these records to the UIPageContext Smart Table: selects an out-of-the-box UI Page based on the Resource Processing Type. FabExplorer.ResourceView.View overrides ResourceView_Cluster. The storage and consumable feeds views have their own action IDs. To use the same custom UI Page for all three views, add these records to the UIPageContext Smart Table:
| Action | Out-of-the-box UI Page | Page |
|---|---|---|
FabExplorer.ResourceView.View | ResourceView_Cluster | CustomResourceView01 |
FabExplorer.ResourceStorageView | ResourceStorageView | CustomResourceView01 |
FabExplorer.ResourceConsumableFeedsView | ResourceConsumableFeedsView | CustomResourceView01 |
Table: Overrides for Resource View variants
For each of the three out-of-the-box pages, open Resource View for a Resource that normally uses that page and verify that the custom page opens.
You can also override FabExplorer.ResourceView directly. A direct override bypasses processing-type routing and can send requests that normally open ResourceStorageView or ResourceConsumableFeedsView to the same custom page. Use the action IDs in the table to preserve processing-type routing and configure the resulting pages individually.
Override Area View#
To replace the out-of-the-box AreaView in Fab Explorer with CustomAreaView01, add a UIPageContext record with Action set to FabExplorer.AreaView.View and Page set to CustomAreaView01. Leave the optional context fields blank to apply the record wherever a higher-precedence record does not match. To replace the out-of-the-box AreaView in Fab Explorer with CustomAreaView01, add a UIPageContext record with Action set to FabExplorer.AreaView.View and Page set to CustomAreaView01. Leave the optional context fields blank to apply the record wherever a higher-precedence record does not match. Open an Area in Fab Explorer and verify that CustomAreaView01 opens. in Fab Explorer and verify that CustomAreaView01 opens.
Override Other View#
For another view, identify the action that opens it and use that view's override action ID in Action. For views that support .View indirection, append .View to the action ID, as in FabExplorer.AreaView.View. Views with dedicated override actions use their own IDs, as shown for the storage and consumable feeds views.
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