631 views

Description

In the Standard Change Template form, the widths of the fields are hard-coded to be 66%, the width of the container element in the base system std_change_readonly_template_handler UI Macro. This setting restricts the visibility of the content of the fields, especially if those fields are large and end up being rendered as HTML type "textarea".

Steps to Reproduce

  1. In a Geneva Patch 5 instance with demo data, navigate to Change > Standard Change > All Templates.

  2. Open one of the templates, for example, Reboot Windows Server.

  3. Scroll down to the Change Request values section.

    Note that the fields are restricted to taking up only 66% of the available space in the section tab.



    The fields should take up the entire/majority of available width of the section tab.

 

Workaround

The steps below explain how to add a customised version of the out-of-the-box UI macro std_change_readonly_template_handler and then update the Standard Change forms to use this to display the Change Request values using 100% of the available space.

These steps will need to be performed by a user with the admin role.

  1. Import the file sys_ui_macro_custom_std_change_readonly_template_handler.xml which is attached to this knowledge article.
    This will create a UI macro with the name custom_std_change_readonly_template_handler which is a copy of the out-of-the-box std_change_readonly_template_handler.  The only change is on line 28 of the XML with the custom version setting the field width to 100% instead of 66%

  2. Update the 3 Formatter records to reference the new custom UI macro.
    To do this, go to module Formatters and filter the list to show records where the Formatter field contains std_change_readonly_template_handler:



    Update the Formatter field on these 3 records from std_change_readonly_template_handler to custom_std_change_readonly_template_handler.  You can either to do this by opening each record and updating the Formatter field or use list edit to update all 3 records at the same time.
    Once updated they should look like this:




  3. Update the formatter elements on the Standard Change forms to also reference the custom UI macro.
    To do this go to the list of section elements by typing sys_ui_element.list in the Filter navigator:



    Filter the list to show the 3 records where the Element field contains std_change_readonly_template_handler:



    Update the Element field on these 3 records from std_change_readonly_template_handler to custom_std_change_readonly_template_handler.  You can either to do this by opening each record and updating the Element field or use list edit to update all 3 records at the same time.
    Once updated they should look like this:






Related Problem: PRB674696

Seen In

Geneva Patch 5

Associated Community Threads

There is no data to report.

Article Information

Last Updated:2017-03-13 05:04:46
Published:2016-05-02