CA Service Management

 View Only
  • 1.  Appear Pop up message

    Posted Sep 10, 2020 08:32 AM
    Hi Guys


    We need to show pop up message after saving change order ticket which will display "Please Add Server(s) under Configuration Management Tab".

    SInce the CIs can only be attach after saving the ticket, in this way the user will not forget to update the CIs

    PLs if anyone can help

    Many Thanks


  • 2.  RE: Appear Pop up message
    Best Answer

    Broadcom Employee
    Posted Sep 11, 2020 04:10 AM
    Edited by Christopher Hackett Sep 17, 2020 04:20 PM
    Hi Asim,

    This sounds like HTML/JavaScript 101. 

    You could

    1. Invoke the popup via the windows alert() function, which you could include in the form.

    https://www.w3schools.com/jsref/met_win_alert.asp#:~:text=The%20alert()%20method%20displays,browser%20to%20read%20the%20message.


    2. Alternatively, add a mandatory property to the category in question which might help as a reminder

    3. It also looks like the issue might be addressed by following the suggestion of a similar question you posted before:

    https://community.broadcom.com/enterprisesoftware/communities/community-home/digestviewer/viewthread?MessageKey=f9762fe1-0052-4cee-95ee-78e2de9366d5&CommunityKey=e2cd3188-49bc-4f38-88f1-74260f56fa66&tab=digestviewer#bmf9762fe1-0052-4cee-95ee-78e2de9366d5



    ------------------------------
    Kind Regards,
    Brian
    ------------------------------



  • 3.  RE: Appear Pop up message

    Posted Sep 11, 2020 04:32 AM
    Hi Brian

    Thanks for you advise, where can i find save button on detail_chg page? so ill put the function to alert popup message






  • 4.  RE: Appear Pop up message

    Posted Sep 13, 2020 02:43 AM
    anyone?


  • 5.  RE: Appear Pop up message

    Posted Sep 14, 2020 01:54 AM
    Edited by hermann1815 Sep 14, 2020 02:27 AM
    Hi,

    create a JS variable in JS-part on top in detail_chg.htmpl:

    var ci_list_length = "$args.asset.length";​​​

    And then a JS-function:

    function preSaveTrigger()
    {
    if (ci_list_length > 0)
    {
    return true;
     }
    else
    {
    alert("Please Add Server(s) under Configuration Management Tab!");
    return false;
    }
    }​​


    That should do it. Sorry the formatting won´t work today.



  • 6.  RE: Appear Pop up message

    Posted Sep 14, 2020 05:07 AM
    HI Henning

    Thanks for your input but this code does not allow me to save change order as it keep alerting to add CI and that is technically not possible, as you know the change must exist in database before we can add CIs

    Can we amend something like the change order saves as well as prompt a message to add ci? 

    not sure but i think preSaveTrigger() will not work here.




  • 7.  RE: Appear Pop up message

    Posted Sep 14, 2020 08:51 AM
    HI Henning

    i have achieved this via Action Macro in workflow with the addition of one more task related to rfc creator

    if (asset length > 0) {
    skip the task
    }
    else{
    assign to rfc creator.
    }