How to highlight VIP user name list view of workspace?

prasannakumard
Tera Guru

Hi Team,

I'm working on Procurement workspace. How can I highlight VIP user in workspace. please let me know any alternative solution for the same. I tried below way: 

In client script, added workspace view name for OOB VIP hight light client script - DOM manipulations are not work on work space view.

 

Please let me know any alternative solution for the same.

 

Note: I've checked all community links, So, please provide work around solutions/possible solutions. Because, no one see once it is answered. Please understand. 

 

Thank you for understanding in advance.

 

Thanks & Regards,

Prasanna Kumar

#workspace #vipflag

5 REPLIES 5

Dnyaneshwaree
Mega Sage

Hello @prasannakumard,

use any server side script i.e., business rule or script include to mark VIP users with a specific field or tag:

if (current.vip) {
    current.addQuery('vip', true);
}

OR use create a new UI Action for the target table and use below code:

if (current.vip) {
    // Add custom class to highlight VIP
    g_form.addInfoMessage('VIP User');
}

If your req. related to any user name field like requested for and you need to highlight that when user is vip, then you can give that info from user table record in script include and call the logic from client script using info/ error messages or using show field msg true or using color style.


 

Please accept my solution if it works for you and thumps up to mark it as helpful.
Thank you!!

Dnyaneshwaree Satpute
Tera Guru

@Dnyaneshwaree Thank you for providing solution. But, I've tried like below:

function onLoad() {
    //Type appropriate comment here, and begin script below
    var userGA = new GlideAjax("x_dhmog_human_ca_0.HumanCaptialVIPUtils");
    userGA.addParam("sysparm_name", "isVipOf");
    userGA.addParam("sysparm_vip", g_form.getValue('u_dh_hr_case_table_caller'));
    userGA.getXMLAnswer(checkingVip);

    function checkingVip(answer) {
        if (answer == 'true') {
            g_form.showFieldMsg('u_dh_hr_case_table_caller', 'This is a VIP Caller', 'error');
            g_form.addDecoration('u_dh_hr_case_table_caller', 'icon-star', 'VIP');
        }
    }
}
This is worked on form level of native and Workspace view. 
Result shown as below:
Native view:                                                                  
prasannakumard_0-1720701976107.png
 
 Workspace view:
prasannakumard_2-1720702082180.png

 

Still, List layout level of workspace not working and don't have any possible solutions. 

Thanks & Regards,

Prasanna Kumar

 

 

@Sid_Takali Thank you for your help. This post already reviewed and implemented but, Still Highlighting VIP on List layout not working.

Thanks & Regards,

Prasanna Kumar