CA Service Management

Expand all | Collapse all

Always Open First Tab on User Login

  • 1.  Always Open First Tab on User Login

    Posted Feb 02, 2017 01:10 AM

    Hi Team,

     

    Whenever a user log in to Service Desk console, the tab that opens on home page is the last tab the user was working on. If we want to always open the first tab (for example Service Desk tab) whenever the user log in, is it possible to configure?

     

    If yes, kindly suggest how it can be achieved?

     

    Thanks & Regards,

    Balram



  • 2.  Re: Always Open First Tab on User Login

    Posted Feb 02, 2017 02:07 AM

    Hi Balram,

     

    I think this can be done, by swapping\changing the order of the tabs for the role. 

     

    Let me know if this helps?

     

    Kind Regards,

    Brian



  • 3.  Re: Always Open First Tab on User Login

    Posted Feb 02, 2017 11:38 PM

    Hi Brian,

     

    Thanks for your response!

    Changing the order of tabs will change the way they are displayed after login to servicedesk console. But the tab that will be opened after login will keep on changing as per session history.

     

    Regards,

    Balram



  • 4.  Re: Always Open First Tab on User Login

    Broadcom Employee
    Posted Feb 02, 2017 09:19 AM

    Can this preference be of any help?

     

    SDM -> View -> Preferences ->

     

     Use the default role assigned to a Contact or a Contact's Access Type as the initial role when the Contact logs in.


  • 5.  Re: Always Open First Tab on User Login

    Posted Feb 02, 2017 11:41 PM

    Hi Raghu,

     

    Thanks for your response!

     

    It will control the role that will be opened after login but the tabs within that role will behave in the same manner.

     

    Regards,

    Balram



  • 6.  Re: Always Open First Tab on User Login

    Broadcom Employee
    Posted Feb 02, 2017 10:58 AM

    Balram, this is controlled by  WEB_TOOLBAR_TAB in USP_PREFERENCES...for the first tab, its value is 0.

    Every time a session ends SDM updates WEB_TOOLBAR_TAB to sync its value with the tab value before the session ends. So

    if you want all future logins go the first tab directly, somehow you would need to update this field value 0 for all records in USP_PREFERENCES

    table. For example, a trigger in mdb that when this field is updated the trigger resets its value to 0. Thanks _Chi



  • 7.  Re: Always Open First Tab on User Login

    Posted Feb 02, 2017 11:45 PM

    Hi Chi,

     

    Thanks for your response!

     

    Can we achieve this with the help of a spel code?

     

    Regards,

    Balram



  • 8.  Re: Always Open First Tab on User Login

    Broadcom Employee
    Posted Feb 03, 2017 10:25 AM

    Balram, I would say that would be a long shot...the difficulty is I am not sure what trigger can trigger the custom spel code. Thanks _Chi



  • 9.  Re: Always Open First Tab on User Login
    Best Answer

    Posted Feb 04, 2017 08:14 PM

    Hi Balram.Deswal,

     

    You can implement this customization by placing the following files in nx_root/site/mods/magic.  Let me know if you have any questions.

    This trigger will fire when WEB_TOOLBAR_TAB is changing and replace the new value with 0.

     

    preferences.mod

    MODIFY USP_PREFERENCES POST_VALIDATE zSetTab() 10000 FILTER(WEB_TOOLBAR_TAB {} && EVENT("INSERT UPDATE"));

     

    preferences.spl

    USP_PREFERENCES::zSetTab(...) 
    { 
    string method; 
    method ="USP_PREFERENCES::zSetTab"; 
    logf(MILESTONE, "%s started", method);

    uuid who; 
    send_wait(0,top_object(), "call_attr", "cnt", "current_user_id"); 
    who=msg[0]; 
    send_wait(0, top_object(), "call_attr", "api", "update_object_super", who, persistent_id, 0, "WEB_TOOLBAR_TAB", 0); 
    logf(MILESTONE, "%s ended", method);
    }


  • 10.  Re: Always Open First Tab on User Login

    Posted Feb 05, 2017 11:11 PM

    Hi Grant,

     

    Thanks for providing the solution. It is working as expected.

     

    Regards,

    Balram



  • 11.  Re: Always Open First Tab on User Login

    Posted Feb 06, 2017 10:59 AM

    You're welcome!