Home Analyst Portal
Options

How to make a little change to portal

Kenneth_AndersenKenneth_Andersen Customer IT Monkey ✭
I will like to change "Now" to "After"

Best Answers

  • Options
    Joe_BurrowsJoe_Burrows Cireson Devops Super IT Monkey ✭✭✭✭✭
    Answer ✓
    Hi,
    thanks.
    but i do have all the service offerings created, and the page is looking like after, but only if I click on the incident and service requests tab.
    i will like the tabs to be expanded then visit the page.
    Hi Kenneth

    Checkout the below thread:
    https://community.cireson.com/discussion/2118

    Cheers
    Joe
  • Options
    Kenneth_AndersenKenneth_Andersen Customer IT Monkey ✭
    Answer ✓
    @Joe_Burrows Thanks :)

    I change the script to this :smile: 

    (function() {
    var homeObserver = new MutationObserver(function (mutations) {
    /*   var targetElements = $('div.sc-filter ul.nav.sidenav > li.ng-scope > a.link');*/
       var targetElements = $('div.service-request-nav ul.sc-nav-list > li.nav-header > a.link');
       if(targetElements.length > 0) { 
          targetElements.each(function(index, item) {
             $(item).trigger("click");
          });       
          homeObserver.disconnect(targetElements);
       }
    });
    var observerConfig = {
        attributes: true,
        childList: false,
        characterData: false,
        subtree: true
    };
    $(document).ready(function () {
        if (window.location.href.indexOf("View/94ecd540-714b-49dc-82d1-0b34bf11888f") > -1) {
            var targetNode = document.getElementById('main_wrapper');
            homeObserver.observe(targetNode, observerConfig);
        }
    });
    })();

Answers

  • Options
    Gerhard_GoossensGerhard_Goossens Customer Advanced IT Monkey ✭✭✭
    To create the first "Now.png" to "after.png" you need to do the following:
    Under Library --> lists, search for "Service Offering Category" In that box, create two new items "Incident" and "Service Request" then click OK to save the list.
    Then go to Library --> Published Service Offerings. In there create a new Service Offering like this:
    Title = Standard Incident
    Category = Incident
    The rest you can insert what you want

    Create another couple of new Service Offerings with the Titles you need as in "after.png" the only difference now is that you select "Service Request under" category.

    Now you Service Offerings and Categories are created.

    The next step is to create Request offerings for all your Service Offerings and then add the Request Offerings to the required Service Offerings. And once the cache builder has been restarted you will see them as admin.

    To allow your users to see those offerings, you need to create a Catalog Group with dynamic members and service offering as the class and then select the Incident and Service Request categories you created.

    Then you need to go to admin settings and select your user's group and tick the newly created catalog item group you created. Then after another cache builder restart, the users should be able to see the newly created categories, Service Offerings, and Request Offerings.

    Please ask if you have any questions regarding this, I might have explained a bit vague and left out some details

  • Options
    Kenneth_AndersenKenneth_Andersen Customer IT Monkey ✭
    Hi,
    thanks.
    but i do have all the service offerings created, and the page is looking like after, but only if I click on the incident and service requests tab.
    i will like the tabs to be expanded then visit the page.
  • Options
    Joe_BurrowsJoe_Burrows Cireson Devops Super IT Monkey ✭✭✭✭✭
    Answer ✓
    Hi,
    thanks.
    but i do have all the service offerings created, and the page is looking like after, but only if I click on the incident and service requests tab.
    i will like the tabs to be expanded then visit the page.
    Hi Kenneth

    Checkout the below thread:
    https://community.cireson.com/discussion/2118

    Cheers
    Joe
  • Options
    Kenneth_AndersenKenneth_Andersen Customer IT Monkey ✭
    Answer ✓
    @Joe_Burrows Thanks :)

    I change the script to this :smile: 

    (function() {
    var homeObserver = new MutationObserver(function (mutations) {
    /*   var targetElements = $('div.sc-filter ul.nav.sidenav > li.ng-scope > a.link');*/
       var targetElements = $('div.service-request-nav ul.sc-nav-list > li.nav-header > a.link');
       if(targetElements.length > 0) { 
          targetElements.each(function(index, item) {
             $(item).trigger("click");
          });       
          homeObserver.disconnect(targetElements);
       }
    });
    var observerConfig = {
        attributes: true,
        childList: false,
        characterData: false,
        subtree: true
    };
    $(document).ready(function () {
        if (window.location.href.indexOf("View/94ecd540-714b-49dc-82d1-0b34bf11888f") > -1) {
            var targetNode = document.getElementById('main_wrapper');
            homeObserver.observe(targetNode, observerConfig);
        }
    });
    })();

Sign In or Register to comment.