The following scenario shows how to add a WR in progress on the asset alerter to the work request sheet.
The alerter will be displayed once the asset is filled in on the page.
Step 1: Creating an indicator
This step consists in creating a Filter indicator in the "Work request" function.
- Open the [WR search] function].
- Select the filter criteria:
- Status: Pending", "Awaiting start of work" and "Awaiting information.
- Asset: *.
- On the indicator menu
, select "Convert to indicator."
→ The detail form of the Indicator is displayed.
- Enter the indicator details:
- Code = ACTUAL_MATERIAL_MR,
- Text = WR in progress on the asset,
- Monitoring values:
- Upper limit = 1, in which case the icon will be displayed as soon as at least one WR is present.
- Icon = INDIC06.
-
Criteria:
- Asset: {bean.code},
- Status: Leave the indicated values.
- Type of entity: MATERIAL.
- Save the new indicator.
Step 2: Adding the alerter to the custom form
This step consists in adding the indicator to the custom form of the asset sheet.
- Open the [Custom forms] function.
- Creating a custom form (or opening an existing custom form):
- "Work" module, "Work request" function, "Details of a WR" form.
- Click on "Edit form."
→ The form displayed in Customization mode.
- Drag a "Link" component to an empty area of the form. This will provide access to the list of WRs with a single click. Adjust its size and position.
- Assign the following properties to the control:
- Action: VIEWINDRESULTACTION.
- URL: #{formAnimator.IUFAnimator.indicatorValues['ACTUAL_MATERIAL_MR'][formAnimator.bean].bitmap}.
- Value: Empty in order to display only the image.
- Setting 1: ACTUAL_MATERIAL_MR.
- Setting 2: #{formAnimator.bean}.
- Balloon help: WR on the asset.
In the asset detail form, the URL would simply be #{formAnimator.IUFAnimator.indicatorValues['ACTUAL_MATERIAL_MR'].value}, and setting 2 would not have to be filled in.
Step 3: Update of the alerter when entering the asset
This step consists in indicating, in the "Asset" area of the form, that the alerter must be refreshed when it is changed.
- Save the identifierof the alerter.
- Select the asset entry field.
- In the "Refreshed zones" property, add the identifier after the others, separated by a comma.
- Confirm the customization.
Step 4: Testing the alerter
To do this, a WR must have been created for an asset.
- Creating a work request.
- Fill in the asset, then leave the zone.
→ The alerter is displayed.
- Click on the alerter image.
→ The list of work requests in progress on the asset is displayed.