CA Service Management

 View Only
  • 1.  CA Service Catalog Call a JavaScript Function from within Another Function

    Posted 27 days ago

    Hello: I have two JavaScript functions within a form, let's call them function1 and function2.  When I try to call function1 from function2, the web browser console returns an error that function1 is undefined, even though it is.  Is this a limitation of CA Service Catalog where functions cannot be called from another function within a form?  Thank you.  Scott



  • 2.  RE: CA Service Catalog Call a JavaScript Function from within Another Function
    Best Answer

    Broadcom Employee
    Posted 27 days ago

    Hi Scott,

    function1() from function2() can be called as "ca_fd.js.function1();"

    Ex:

    {

           function1 : function(){
            console.log('function 1 called');
          },
          function2 : function(){
            ca_fd.js.function1();
          }

    }

    Regards,

    Satya Kiran




  • 3.  RE: CA Service Catalog Call a JavaScript Function from within Another Function

    Posted 26 days ago
    I never thought of using that syntax. I will try that today. Thank you.
    Sent from my iPhone

    On Apr 5, 2024, at 4:40 AM, Satya Kiran Jasti via Broadcom <mail@broadcom.com> wrote:

    
    CAUTION: This email originated from a sender outside of the Commonwealth of Massachusetts mail system. Do not click on links or open attachments unless you recognize the sender and know the content is safe.


    Hi Scott, function1() from function2() can be called as "ca_fd.js.function1();" Ex: { function1 : function(){ console...
    [Broadcom] <https: urldefense.com/v3/__https://community.broadcom.com__;!!cpanwp4y!seahlzw1ektaazotoqawaux1q7qsxpmiijrd0kxmyy5k9_y5x6eqtwfqqctappf8qaju1yehxn8v9xf3rq$="">
    CA Service Management<https: urldefense.com/v3/__https://community.broadcom.com/communities/community-home/digestviewer?communitykey="e2cd3188-49bc-4f38-88f1-74260f56fa66__;!!CPANwP4y!SeAHLzw1EKTaazoToQAwAuX1Q7qsXpMiijRD0KxMyY5k9_Y5X6EqTwfQqcTAppF8qAJU1yehXN-yyjZ41Q$">
    Post New Message<mailto:broadcom-clarityservicemanagement@connectedcommunity.org>
    Re: CA Service Catalog Call a JavaScript Function from within Another Function<https: urldefense.com/v3/__https://community.broadcom.com/discussion/ca-service-catalog-call-a-javascript-function-from-within-another-function*bmff351f5a-ffa0-4a55-b5d6-018ead639bd6__;iw!!cpanwp4y!seahlzw1ektaazotoqawaux1q7qsxpmiijrd0kxmyy5k9_y5x6eqtwfqqctappf8qaju1yehxn8wnygczw$="">
    Reply to Group<mailto:broadcom_clarityservicemanagement_ff351f5a-ffa0-4a55-b5d6-018ead639bd6@connectedcommunity.org?subject=re:%20ca%20service%20catalog%20call%20a%20javascript%20function%20from%20within%20another%20function> Reply to Sender<https: urldefense.com/v3/__https://community.broadcom.com/communities/all-discussions/postreply?messagekey="ff351f5a-ffa0-4a55-b5d6-018ead639bd6&ListKey=ae1857c8-5f46-49c0-a2c3-20c312f62988&SenderKey=e6b183ba-7dd3-4e0f-a0f6-82d71185a4ef__;!!CPANwP4y!SeAHLzw1EKTaazoToQAwAuX1Q7qsXpMiijRD0KxMyY5k9_Y5X6EqTwfQqcTAppF8qAJU1yehXN8JaKjiJQ$">
    [Satya Kiran Jasti]<https: urldefense.com/v3/__https://community.broadcom.com/network/members/profile?userkey="e6b183ba-7dd3-4e0f-a0f6-82d71185a4ef__;!!CPANwP4y!SeAHLzw1EKTaazoToQAwAuX1Q7qsXpMiijRD0KxMyY5k9_Y5X6EqTwfQqcTAppF8qAJU1yehXN8ovCi4hQ$">
    Apr 5, 2024 4:36 AM
    Satya Kiran Jasti<https: urldefense.com/v3/__https://community.broadcom.com/network/members/profile?userkey="e6b183ba-7dd3-4e0f-a0f6-82d71185a4ef__;!!CPANwP4y!SeAHLzw1EKTaazoToQAwAuX1Q7qsXpMiijRD0KxMyY5k9_Y5X6EqTwfQqcTAppF8qAJU1yehXN8ovCi4hQ$">

    Hi Scott,

    function1() from function2() can be called as "ca_fd.js.function1();"

    Ex:

    {

    function1 : function(){
    console.log('function 1 called');
    },
    function2 : function(){
    ca_fd.js.function1();
    }

    }

    Regards,

    Satya Kiran

    Reply to Group Online<https: urldefense.com/v3/__https://community.broadcom.com/communities/all-discussions/postreply?messagekey="ff351f5a-ffa0-4a55-b5d6-018ead639bd6&ListKey=ae1857c8-5f46-49c0-a2c3-20c312f62988__;!!CPANwP4y!SeAHLzw1EKTaazoToQAwAuX1Q7qsXpMiijRD0KxMyY5k9_Y5X6EqTwfQqcTAppF8qAJU1yehXN-NMWCXnw$"> Reply to Group via Email<mailto:broadcom_clarityservicemanagement_ff351f5a-ffa0-4a55-b5d6-018ead639bd6@connectedcommunity.org?subject=re:%20ca%20service%20catalog%20call%20a%20javascript%20function%20from%20within%20another%20function> View Thread<https: urldefense.com/v3/__https://community.broadcom.com/discussion/ca-service-catalog-call-a-javascript-function-from-within-another-function*bmff351f5a-ffa0-4a55-b5d6-018ead639bd6__;iw!!cpanwp4y!seahlzw1ektaazotoqawaux1q7qsxpmiijrd0kxmyy5k9_y5x6eqtwfqqctappf8qaju1yehxn8wnygczw$=""> Recommend<https: urldefense.com/v3/__https://community.broadcom.com:443/discussion/ca-service-catalog-call-a-javascript-function-from-within-another-function?messagekey="ff351f5a-ffa0-4a55-b5d6-018ead639bd6&cmd=rate&cmdarg=add*bmff351f5a-ffa0-4a55-b5d6-018ead639bd6__;Iw!!CPANwP4y!SeAHLzw1EKTaazoToQAwAuX1Q7qsXpMiijRD0KxMyY5k9_Y5X6EqTwfQqcTAppF8qAJU1yehXN_wuOSe4Q$"> Forward<https: urldefense.com/v3/__https://community.broadcom.com/communities/all-discussions/forwardmessages?messagekey="ff351f5a-ffa0-4a55-b5d6-018ead639bd6&ListKey=ae1857c8-5f46-49c0-a2c3-20c312f62988__;!!CPANwP4y!SeAHLzw1EKTaazoToQAwAuX1Q7qsXpMiijRD0KxMyY5k9_Y5X6EqTwfQqcTAppF8qAJU1yehXN-7UqQQlA$"> Flag as Inappropriate<https: urldefense.com/v3/__https://community.broadcom.com/discussion/ca-service-catalog-call-a-javascript-function-from-within-another-function?markappropriate="ff351f5a-ffa0-4a55-b5d6-018ead639bd6*bmff351f5a-ffa0-4a55-b5d6-018ead639bd6__;Iw!!CPANwP4y!SeAHLzw1EKTaazoToQAwAuX1Q7qsXpMiijRD0KxMyY5k9_Y5X6EqTwfQqcTAppF8qAJU1yehXN9hbTCmJw$">



  • 4.  RE: CA Service Catalog Call a JavaScript Function from within Another Function

    Posted 26 days ago
    Satya,

    That syntax worked perfectly. It’s exactly what I wanted.

    Thank You,

    Scott Stineman

    CA Service Desk Systems Administrator and Developer
    EOHHS-IT CA Service Desk Application Services

    E: scott.stineman@mass.gov<mailto:scott.stineman@mass.gov>
    W: 617-847-3319 | M: not applicable

    [Service Delivery, IT-Core Infrastructure EOHHS-IT Central Office | 100 Hancock Street, Quincy MA 02171 Executive Office of Health and Human Services Proudly Servicing EOHHS]