BPM, Workflow, and Case

BPM, Workflow, and Case

Come for answers. Stay for best practices. All we’re missing is you.

 View Only
  • 1.  hightlight comment case tab when there is comment

    Posted Thu January 23, 2025 09:22 AM

    Hello,

    I was wondering if it's possible to  highlight the comment tab in case of a comment, is it possible to achieve this using coaches.
     thank you in advance.



    ------------------------------
    Sarah Alay
    ------------------------------


  • 2.  RE: hightlight comment case tab when there is comment

    Posted Fri January 24, 2025 11:23 AM

    Hello!

    The case comments UI view has a public method on it that returns an array of the comments. You can use the array.length method to get the count.

    There is no OOTB mechanism to know for each user, whether a comment is "new" to them so that might be something you have to handle on your own somehow. eg. for each user, store the last comment count they saw.

    var commentsView = page.ui.get("/Case_Comments");
    if (commentsView != null) {
    var theComments = commentsView.getCaseComments();
    var commentCount = theComments.length;
    this.setText (commentCount.toString() + " comments");
    }


    ------------------------------
    DAVE PERMAN
    ------------------------------



  • 3.  RE: hightlight comment case tab when there is comment

    Posted Mon January 27, 2025 07:05 AM

    Hello Dave,
    Thank you for your response. The issue I'm facing is making a change to the tab-such as highlighting it or modifying the label-in the comment tab to ensure the user notices that there is a comment.

    Best regards,
    Sarah



    ------------------------------
    Sarah Alay
    ------------------------------



  • 4.  RE: hightlight comment case tab when there is comment

    Posted Mon January 27, 2025 10:10 AM

    I don't think the standard Tab control has that as an attribute (but you should check its JS APIs). If it doesn't, you can make a copy of it into your own toolkit or project and then you can customize that part of it yourself (vs write the entire thing from scratch).



    ------------------------------
    DAVE PERMAN
    ------------------------------