21 views

Symptoms


Within Service Portal, unable to hide empty variables displayed in the UI Formatters (Variable Editor and Approval Summarizer) on Requested Item and Approval forms so that only variables containing data (either system or user generated) are displayed in the formatters. 

Release


All releases 

Cause


Service Portal is built on Angular whereas UI Macros are built on Jelly, which will not work in Service Portal

Resolution


GENERAL RECOMMENDATIONS for IMPLEMENTING CUSTOM BUSINESS REQUIREMENT: 
 
1) Here are the 2 UI Formatters used on the Requested Item (sc_req_item) and Approval (sysapproval_approver) forms: 
<Your instance>/sys_ui_formatter_list.do?sysparm_query=tableSTARTSWITHsc_req_item%5EORnameSTARTSWITHApproval%5Ename!%3DDelivery%20Plan%20Schedule%5EORname%3DNULL
 
2) The 'Variable Editor' UI Formatter uses a UI Macro 'com_glideapp_servicecatalog_veditor' below which could be customized to hide any needed variables:
<Your instance>/nav_to.do?uri=sys_ui_macro.do?sys_id=37c219149f2320007bb2ed93ee4bccca
 
3) The 'Approval Summarizer' UI Formatter currently uses 'approval_summarizer_master.xml' formatter which is embedded in our base code and not possible to customize. Alternately, you could build a custom UI Macro similar to 'com_glideapp_servicecatalog_veditor' and use this formatter instead and implement your customizations there. However we would need customers to own this, as customized implementations are beyond support scope.
 
4) Alternately, instead of customizing the UI Formatters above, customers could implement Catalog Client Scripts at the Catalog Item level and set them to apply on Requested Items by clicking on 'Applies on Requested Items' in the Catalog Client Script. These scripts could handle setting the variable display to not visible in case they do not have a value. Again, we would need customers to own this, as customized implementations are beyond support scope. 

 

Article Information

Last Updated:2018-08-14 16:07:03
Published:2018-08-14