CA Service Management

  • 1.  CI button in different location

    Posted Jul 25, 2017 06:45 AM

    Hi ,

    I need to show the same "Update CI" tab in different location of change detail page. How can I do that?

     

    Thanks

    Ishani



  • 2.  Re: CI button in different location

    Broadcom Employee
    Posted Jul 25, 2017 07:28 AM

    Hi Ishani,

     

    I am not sure on which page you are wanting this functionality to be replicated but you have to note that "Update CI" button is defined in "list_nr.htmpl" file. You may want to copy this code and try to re use accordingly to suit your requirement.

     

    Below is the specific code relevant to the "Update CI" button i.e.

     

    =================================================================================

       <PDM_IF $args.KEEP.is_cab_approval != 1> // do not display the button in CAB approval screen.
        <PDM_MACRO NAME=button                    
            id="UPDATE_LREL"                           
            caption="Update CIs" 
            func="update_lrel('$args.KEEP.parentFac', '$args.KEEP.TKT_PERSID', 'nr', 'asset',  'Available Configuration Items', 'Affected Configuration Items', '')"    
            hotkey_name="Update CIs" >                          
        if (parent._dtl.edit)
            ImgBtnDisableButton("UPDATE_LREL");
       </PDM_IF>

    =================================================================================



  • 3.  Re: CI button in different location

    Posted Jul 25, 2017 08:06 AM

    Hi Maheswar,

    Here is where I want to add the button.

     

    Thanks

    Ishani



  • 4.  Re: CI button in different location

    Posted Jul 25, 2017 09:27 AM

    Hi Maheswar,

    Created the button with the following code:-

     

    <PDM_MACRO name=button Caption="Update CIs" Func="update_lrel('$args.KEEP.parentFac', '$args.KEEP.TKT_PERSID', 'nr', 'asset', 'Available Configuration Items', 'Affected Configuration Items', '')" hotkey_name="Update CIs" ID="btnCI">

     

    Clicking on the button is also showing the Search window:-

    After clicking on search ,its spinning for infinite time.

    and then showing delayed server response after some time

     



  • 5.  Re: CI button in different location

    Posted Jul 25, 2017 01:49 PM

    Hi,

     

    Try this code.  The problem is with the $arg variables you're using.  The KEEP variables are passed to the list form from the detail form and don't exist on the detail form.

     

    <PDM_MACRO name=button Caption="Update CIs" Func="update_lrel('chg', '$args.persistent_id', 'nr', 'asset', 'Available Configuration Items', 'Affected Configuration Items', '')" hotkey_name="Update CIs" ID=btnCI>



  • 6.  Re: CI button in different location

    Broadcom Employee
    Posted Jul 25, 2017 02:30 PM

    Ishani, this works for me:"

    <PDM_IF $args.KEEP.is_cab_approval != 1> // do not display the button in CAB approval screen.

     

        <PDM_MACRO NAME=button                    
            id="UPDATE_LREL"                           
            caption="Update CIs"
            func="update_lrel('chg', '$args.persistent_id', 'nr', 'asset',  'Available Configuration Items', 'Affected Configuration Items', '')"    
            hotkey_name="Update CIs" >                          
        if (parent._dtl.edit)
            ImgBtnDisableButton("UPDATE_LREL");
    </PDM_IF>

    "

    Thanks _Chi