Workflow Soluiton

 View Only
  • 1.  Conditional Formating in Process View Page

    Posted Nov 23, 2016 07:22 PM

    I'd like to modify a Process View Page to highlight when a Process Status has specific text content (Failed, Exception that sort of thing). Ideally it would use conditional formating to display the text in large bold red text (or similar).  I have looked through the web parts available and at the existing Process Info web part but can't see a way to do this.

    Is there a way to do this?



  • 2.  RE: Conditional Formating in Process View Page

    Posted Nov 24, 2016 05:29 AM

    You can in Reports.

    Add your Columns, Edit (pencil)

    Column Formatting: 
    Choose your condition then colour.

    ---

    Admin | Portal | Manage Pages

    Process View Pages | "Choose page" | Go To Page

    Site Actions | Modify Page | Edit Page

    Ticket Overview - Edit

    Scroll down to Columns

    Choose Field and click Arrow

    Change colour but changes for all.



  • 3.  RE: Conditional Formating in Process View Page

    Posted Nov 28, 2016 08:00 PM
      |   view attached

    This may be close to what you are looking for:

     

    Workflow/ServiceDesk - How To influence HTML elements in a Process View Page

    https://www.symantec.com/connect/blogs/workflowservicedesk-how-influence-html-elements-process-view-page

     

    I tested this on 7.5 SP1 with the following code in the 'JScript.js' file:

     

    function showFailed() {
            $('div:contains("Ruleset")').each(function() {
            $(this).css({"font-weight": "bold", "color": "red"});
        });
    }

     

    The search text is "Ruleset", you can change this as needed.

    The function called is showFailed().



  • 4.  RE: Conditional Formating in Process View Page

    Posted Dec 01, 2016 01:25 PM

    Follow up to my previous post, the following Javascript is more selective on the Red Bolding and does not affect other elements:

     


    function showFailed() {
            $('.pv_h_desc div:contains("Ruleset")').each(function() {
            $(this).css({"font-weight": "bold", "color": "red"});
        });
    }