Configure an Attribute with a Custom Action - Precisely_EnterWorks - EnterWorks - 11.0

EnterWorks Guide

Product type
Software
Portfolio
Verify
Product family
EnterWorks
Product
Precisely EnterWorks
Precisely EnterWorks > EnterWorks
Version
11.0
Language
English
Product name
Precisely EnterWorks
Title
EnterWorks Guide
Copyright
2024
First publish date
2007
Last updated
2025-01-07
Published on
2025-01-07T07:44:20.997352

You can configure an attribute so that when it is edited, EnterWorks triggers a custom JSP and/or HTML page that will used to get the attribute value. If the attribute is edited in the Classic UI, a JSP page will be triggered. If it is edited in the New UI, EnterWorks looks for an HTML page with the same name as the JSP page specified here and uses it. If this control will only be used in the New UI, the contents of the JSP page are not used, however, if the control needs to operate in both UIs, both the JSP page and the HTML page need to be operational.

Custom actions are configured at the repository level, in the attribute properties.

To configure an attribute with a custom action:

  1. In the EnterWorks classic UI, open the Feature Bar and find the repository that contains the attribute that will use the custom action.
  2. Click the arrow to the right of the repository's name to open the action menu, select Edit, and select Attribute Properties.
  3. Scroll to the attribute the custom action will be applied to and edit the following settings as desired:
    • Calculation Label: Used for defining a custom action. This is the label that will appear if you hover over the custom action icon.
    • Calculation URL: Used for defining a custom action. When you click this field, a window will appear that has the following fields:
      • Calculation Ind: The action to occur when you click the custom action icon.
        • <none>: No calculation indicator will be displayed. This is the default for any attribute for which no calculations are to be performed.
        • Open as Dialog: The selected JSP/HTML page will be opened as a dialog prompt.
        • No User Interface: The selected JSP/HTML page will be opened in the background. There will not to be any user input fields on the form.
        • Open as Window: The selected JSP/HTML page will be opened in a new window.
        • Hidden Window:  The selected JSP/HTML page will be opened in the background. No pop-up is shown.
        • Control with Window: A pop-up window will appear that has a button for the attribute. Clicking the button triggers the JSP/HTML page. The attribute will not be updated.
        • Control with Hidden Window: A hidden pop-up window will appear that has a button for the attribute. Clicking the button triggers the JSP/HTML page. The attribute will not be updated.
        • Calculated Attribute: The attribute value may be updated by the custom action. This is used for an attribute that is going to be updated by a pop-up page but there is not a button to open the page.
      • Calculation URL: The name of the custom action HTML/JSP file that will be invoked when the custom action button is clicked.
  4. When you have finished editing, click the Save button and close the window.
  5. Clear the cache.