CA Service Management

Expand all | Collapse all

SDM 14.1 Product Name Change

Jump to Best Answer
Paulo Freire Ferrarini

Paulo Freire Ferrarini12-14-2017 05:37 AM

  • 1.  SDM 14.1 Product Name Change

    Posted 12-08-2017 06:49 AM

    It is possible to change the product name in SDM 14.1 Analyst PÇage?

     

    In this example I need to change the "IT Service Management" text.



  • 2.  Re: SDM 14.1 Product Name Change

    Posted 12-14-2017 06:19 AM

    Hi Paulo,

    This do work perfectly fine on a 14.1 multi-tenant instance for me.

    Did you run a pdm_webcache and/or recycle SDM for the change to take effect?

    Note that for testing you will have to logon with an user for that particular tenant you wanted to see the different text.

    You may eventually have missed a part.

    Keep us updated

    /J



  • 3.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 07:07 AM

    Hi paulofreire75,

     

    yes, one of option is customize file "\bopcfg\www\htmpl\default\tagged\ahdtop_site.htmpl" 

    ...
    <PDM_PRAGMA RELEASE=110>
    <!-- Start of ahdtop_site.htmpl -->
    <script type="text/javascript">
    ahdtop.cfgProductName = "HERE IS YOUR NEW NAME";
    </script>

    <script type="text/javascript" src="$CAisd/scripts/msg_cat_site.js"></script>
    <!-- End of ahdtop_site.htmpl -->
    ...

    and save it in "\site\mods\www\htmpl\default\ahdtop_site.htmpl". Then run cmd

    pdm_webcache

    and login to SDM

     

    Bye

    Lumir



  • 4.  Re: SDM 14.1 Product Name Change

    Broadcom Employee
    Posted 12-14-2017 09:41 AM

    Hi,

     

    Like Lumir suggested, modify the ahdtop_site.htmpl file and place it in the ...\site\mods\...\default folder.

    Add the lines below to the ahdtop_site.htmpl:

     

    ////// Modification of Banner and Customer Logo ====

    var cfgProductName = " <B>Service Desk </B><font size=\"1\"><i>powered by</i> </font><font size=\"2\" color=red><B>IT Department</B></font>";
    var cfgFormTitle = "Service Desk powered by IT Department";
    usdImg["circleca"] = "$CAisd/img/my_logo_small.png";
    var ProductName = "Service Desk Manager";

    ////// End of Modification - Banner and Customer Logo ====

     

    I have included some more interesting variables that you may like. You will need to do a pdm_webcache after the modifications are made. Better if you logout and login again with a browser cache refresh.

     

    Hope this helps.

    Indra.



  • 5.  Re: SDM 14.1 Product Name Change

    Posted 12-13-2017 02:02 PM

    Hi,

    You will not be able to overwrite this using form group per tenant. Below is however  a solution to your problem.

    This is not the nicer way to implement your requirements but will work and will give you dynamic banner text per tenant.

    Hopefully this will give some inspiration to someone in CA for next release

     

    1/ In the admin tab, go edit each of your tenants and add a description where the description will reflect what you want to see in your banner. (I made it quick using the description but you may eventually want create a custom attributes for it.)

     

    2/ Add the variable below to you ahdtop_site.htmpl

    <!-- <PDM_IF 0>
    @(#)\$Id: ahdtop_site.htmpl,v 1.1 2006/11/01 18:00:42 olsjo01 Exp $
    This file modifies variables created in ahdtop or creates new ones.
    Access to these variables is available from the ahdtop object in all forms.

    You should place your customized version of ahdtop_site.htmpl in
    site/mods/htmpl/www/web/default/ahdtop_site.htmpl
    </PDM_IF> -->
    <PDM_PRAGMA RELEASE=110>
    <!-- Start of ahdtop_site.htmpl -->
    <script type="text/javascript">

    var cstTenantBan = <PDM_FMT PAD=NO ESC_STYLE=C>'${cst.tenant.description:}'</PDM_FMT>;


    </script>
    <script type="text/javascript" src="$CAisd/scripts/msg_cat_site.js"></script>
    <!-- End of ahdtop_site.htmpl -->

    Note that if you use a custom attributes in stead of the description you will need to modify the above according (see point 8)

     

    3/ If not already exist create a sitemod.js file under your site/mods/www/wwwroot/scripts.

     

    4/ Copy the code below into the sitemod.js (This is a mods from the original in bopcfg)

    //JMAYER overwrite default function to handle different product name by tenant

    function zgenerate_logo_product_name_html (product_name_style)
    {
    if ( typeof ahdtop != "object" || ahdtop == null )
    ahdtop = get_ahdtop();
    var sdm_product_name_style = "sdm_product_name sdm_product_name_dark_color";
    if ( typeof product_name_style == "string" && product_name_style != "" )
    {
    sdm_product_name_style = product_name_style;
    }
    var lpn_html = '<table class="product_info_container"><tr>';
    if ( typeof ahdframe == "object" && ahdframe != null &&
    typeof ahdframe.argTenantLogo == "string" &&
    ahdframe.argTenantLogo.length > 0 )
    lpn_html += '<td class="gn_container_no_padding"><img id="logoImg" src="' + ahdframe.argTenantLogo + '"' +
    ' class="logo_img" alt="' + ahdframe.argTenantLogoAlt + '"></td>';
    else if ( typeof ahdtop.cfgMultiTenancy == "string" &&
    ahdtop.cfgMultiTenancy != "off" &&
    typeof ahdtop.cstTenantLogo == "string" &&
    ahdtop.cstTenantLogo.length > 0 )
    lpn_html += '<td class="gn_container_no_padding"><img id="logoImg" src="' + ahdtop.cstTenantLogo + '"' +
    ' class="logo_img" alt="' + ahdtop.cstTenantLogoAlt + '"></td>';
    else
    lpn_html += '<td class="CA_logo"><img id="logoImg" src="' +
    ahdtop.usdImg["circleca"] + '" class="logo_img" alt="C A Technologies"></td>';
    //modification start here
    var zproductName = ahdtop.cfgProductName;
    var zproductBan = ahdtop.cstTenantBan;
    if((typeof ahdtop.cfgMultiTenancy == "string" && ahdtop.cfgMultiTenancy != "off") && (typeof zproductBan == "string" && zproductBan != "")){
    zproductName = zproductBan;
    }
    lpn_html += '<td class="product_name_container"><span class="' + sdm_product_name_style + '"><nobr>' + zproductName +
    '</nobr></span></td></tr></table>';
    //modication end here

    return lpn_html;
    }

     

     5/ Copy gobtn_role.htmpl from the bopcfg folder into your site/mods/www/htmpl/default/ folder

     

     6/ Open your copied gobtn_role.htmpl  file and search for the line:

    html = generate_logo_product_name_html("sdm_product_name");

    and modify the name of the function by adding a z in front

    html = zgenerate_logo_product_name_html("sdm_product_name");

     

    7/ Run pdm_webcache (sometime it may be necessary to do a full recycle for ahdtop to be cleared out) and clean your local browser cache.

     

    8/ In the admin tab, go edit each of your tenants and add a description where the description will reflect what you want to see in your banner (I made it quick using the description but you may eventually want create a custom attributes for it.)

    Warning: Keep it short if you want to keep a nice display!

     

    9/ Logout/login and you must now see the banner according to your tenant description you belong too.

     

    Hope this help Christmas time

    /J



  • 6.  Re: SDM 14.1 Product Name Change

    Posted 12-15-2017 12:46 PM

    Paulo, did you finally make this work for you?

    Keep us updated

    /J



  • 7.  Re: SDM 14.1 Product Name Change

    Broadcom Employee
    Posted 12-11-2017 09:49 AM

    Paulo.........

     

    Did all the information provided previously assist you in changing the SDM Product Name on the Analyst page?

     

    If so, please mark an answer as correct so that this thread can be closed out.



  • 8.  Re: SDM 14.1 Product Name Change

    Posted 12-14-2017 06:32 AM

    The only thing that I didn´t do was to recicle SDM service.

    And one difference in my implementation is that all the commented files was put in the form group directory, not in the root like www\default.

    I put in www\default\CDECOR , that is my form group for the users of the tenant that I want to change the text



  • 9.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 07:27 AM

    Hi

     

    I did the suggested configuration but it didnt worked.

    The text remains the original text



  • 10.  Re: SDM 14.1 Product Name Change

    Posted 12-14-2017 11:50 AM

    Indrajit, if you read this tread you will see that this havs been proposed already.

    Your solution apply to change the text for all tenant and this is not was Paulo is looking for Different text per tenant.

    Therefore my proposed solution..

    /J



  • 11.  Re: SDM 14.1 Product Name Change

    Posted 12-14-2017 05:37 AM

    I did the suggested configurations but not worked



  • 12.  Re: SDM 14.1 Product Name Change

    Posted 12-11-2017 10:00 AM

    Hi

     

    The information provided won´t work.

    I´m still unable to change the product name.



  • 13.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 07:46 AM

    Hi,

     

    cfgProductName is JavaScript variable, so you need to clear browser cache (or try another browser ;-) )

     

    Lumir



  • 14.  Re: SDM 14.1 Product Name Change

    Broadcom Employee
    Posted 12-11-2017 03:52 PM

    Hello Paulo,

     

    I tried the document TEC502605 and it was successful for me in my test 14.1 CP4 environment.  I was able to get the name to change in the login and Analyst screen by altering @NX_INSTALL_OPTION in the NX.env.

     

    What I basically did to get this to work:

     

    - Stop all SDM Services

    - Edit the NX.env and change @NX_INSTALL_OPTION to whichever value is needed 

    - Start SDM Services.

    - Clear browser cache on testing browser

     

    I would check to see if you may have any custom forms or scripts in play.  One thing I did notice is that my default file entry reads as:

     

    @NX_INSTALL_OPTION=CA Service Desk Manager

     

    But yours says "IT Service Management", which means this text was changed in your installation from the default before.  I am suspecting that if your NX.env file's @NX_INSTALL_OPTION does not say "IT Service Management", then something else was done outside of the above listings, maybe direct to the custom forms to change the text.

     

    How do I display my company's banner text and logo image on web browser pages in place of the CA Service Desk banner tex… 



  • 15.  Re: SDM 14.1 Product Name Change

    Posted 12-14-2017 11:58 AM

    Hello Paulo,

    Wondering I you finally make it work after my last post.

    Keep us updated.

    /J



  • 16.  Re: SDM 14.1 Product Name Change

    Posted 12-14-2017 06:43 AM

    also note that if you already use the description field , you can, as suggested, just create another string field on the tenant object and modify as explained.

    /J



  • 17.  Re: SDM 14.1 Product Name Change
    Best Answer

    Posted 12-14-2017 06:40 AM

    Well that do explain.

    There is no need to add it to the form group and this will not work there. you need to respect the path that I did provide.

    This is dynamic... If you don't put any description on the others tenant, they will continue to display the default one or you may eventually have one different for each of them just by adding your text in the description of the corresponding tenant.

    Hope this help

    /J



  • 18.  Re: SDM 14.1 Product Name Change

    Posted 12-12-2017 03:05 AM

    Hi Paulo,

     

    If non of the information provided here thus far does not work for you, perhaps log an official support case for further investigation?

     

    We would be able to do a webex with you to check why the changes don't take effect.

     

    Do let us know the case number for some of us to help track it as well...

     

    ===

    Kind Regards,

    Brian



  • 19.  Re: SDM 14.1 Product Name Change

    Posted 12-12-2017 01:25 PM

    Hi

     

    The problem is that this way it will be a global configuration, but I´m using a tenanted environment and I need to change the product name only for 1 of the tenants



  • 20.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 07:50 AM

    Tried another browser and cleaning the cache, but the text didn´t changed.

    I think this only works for older versions of sdm.



  • 21.  Re: SDM 14.1 Product Name Change

    Broadcom Employee
    Posted 12-12-2017 02:18 PM

    Hello Paulo,

     

    As I previously asked, can you also clarify how was the original header name change done in the first place?   I ask since your header reads as  "IT Service Management", but that is not the default value, which is "CA Service Desk Manager".  Did you already have an existing change to NX.env in entry @NX_INSTALL_OPTION? 

     

    Depending on how the name change was originally done in your install, it may be possible to leverage the existing change to accommodate for tenant specific listings, but we need to know first how it was originally done.



  • 22.  Re: SDM 14.1 Product Name Change

    Posted 12-13-2017 08:32 AM

    Hi paulofreire75

     

    If you have dedicated role for current tenant users (or you can use new role), you can use this TEC1034635 to create new Form Group and Role, but customize ahdtop_site.htmpl form (my first post).

    Donť forget to clear server and client cache

     

    Hope this help

    Lumir



  • 23.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 08:03 AM

    I don't think. We have this customization on version 12.5, 12.9 and now on 17.0. Can you see another file with name "ahdtop_site.htmpl" in folder "\site\mods\www\htmpl\*"? For example file "\site\mods\www\htmpl\web\analyst\ahdtop_site.htmpl".



  • 24.  Re: SDM 14.1 Product Name Change

    Posted 12-13-2017 07:13 AM

    In my environment this option in options manager is configured with IT Service Management



  • 25.  Re: SDM 14.1 Product Name Change

    Posted 12-13-2017 09:03 AM

    I tryed to customize the ahdtop_site but not worked



  • 26.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 08:10 AM

    No there isn´t

    My environment is tenanted and I put the file in a form group from one of the tenants

    site\mods\www\default\CDECOR



  • 27.  Re: SDM 14.1 Product Name Change



  • 28.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 08:19 AM

    Tried but not worked too



  • 29.  Re: SDM 14.1 Product Name Change

    Broadcom Employee
    Posted 12-13-2017 09:19 AM

    Paulo, if you would need this change for one tenant only, certainly you would need some customization. You said you customized ahdtop_site.htmpl...do you mind you post the customized file here? Thanks _Chi



  • 30.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 08:21 AM

    Hmm, that isn't be worked. Files in folder "site\mods\www\default\CDECOR\*" CA SDM can't read (only my experience). Move file ahdtop_site.htmpl to folder "site\mods\www\default\", only for test. Than we will see what next. I hope that is test server ;-)



  • 31.  Re: SDM 14.1 Product Name Change

    Posted 12-08-2017 08:32 AM

    Don't forget to run 'pdm_webcache -H' as well...



  • 32.  Re: SDM 14.1 Product Name Change

    Posted 12-13-2017 10:32 AM

    Here are my code:

     

    <!-- <PDM_IF 0>
    @(#)\$Id: ahdtop_site.htmpl,v 1.1 2006/11/01 18:00:42 olsjo01 Exp $
    This file modifies variables created in ahdtop or creates new ones.
    Access to these variables is available from the ahdtop object in all forms.

    You should place your customized version of ahdtop_site.htmpl in
    site/mods/htmpl/www/web/default/ahdtop_site.htmpl
    </PDM_IF> -->
    <PDM_PRAGMA RELEASE=110>
    <!-- Start of ahdtop_site.htmpl -->
    <script type="text/javascript">
    ahdtop.cfgProductName = "Construdecor";
    </script>
    <script type="text/javascript" src="$CAisd/scripts/msg_cat_site.js"></script>
    <!-- End of ahdtop_site.htmpl -->

     

    the file is saved in site/mods/www/htmpl/CDECOR

     

    CDECOR is my form group. I customized some forms from analyst in this form group and it is working, but the ahdtop_site , with the code above is not changing product name