Skip to main content

Posts

How to override an inherited field label on the child table

go to the table, add a 'label' entry in this example, we want to override the task.urgency label on change request so the label is displayed as 'change classification': a corresponding entry is created in sys_documentation

Service Catalog: get display value of reference catalog variable

alert(g_form.getDisplayBox('<variable_name>').value); note: this doesn't work in Service Portal, and not sure if it's officially supported since it doesn't appear in the GlideForm documentation! for serviceportal, some experimentation below... --- was having a play with GlideRecord in Service Portal view... function onSubmit () {     var urlString = top . location . toString ();     var res = true ;     var bPortal = false ; //--loaded from Service Portal?     if ( urlString . indexOf ( 'id=sc_cat_item' )>- 1 ){         bPortal = true ;     }     var itemID = '' ;     try {         if ( bPortal ){             itemID = g_form . getSysId (); //--service portal friendly        ...

Service Portal - locating source of $sp-homepage-bg in the index page CSS

question : where can i locate the source CSS defined in the service portal index page, in page specific CSS, namely:background-color: $sp-homepage-bg;is sp-homepage-bg defined a CSS include and therefore not possible to edit? answer : $sp-homepage-bg is a scss variable and it defined in the service portal plugin. Internal File: glide/glide-service-portal/src/main/plugins/com.glide.ui.scss.bootstrap/ui.html/styles/scss/sp-variables.scss