webMethods

webMethods

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

javascript to get the value of async command URl

  • 1.  javascript to get the value of async command URl

    Posted Fri September 30, 2011 06:00 PM

    hi
    I have a requirement where i want to take a value of URL on click and set the value to input text .
    After on click the value of the url should be changed.

    thanks ,
    rajesh kumar


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 2.  RE: javascript to get the value of async command URl

    Posted Mon October 03, 2011 05:55 PM

    I might not fully understand your question, but while it is pretty easy to get the Value of any CAF.model in javascript, you can also do this with Script Controls.
    Please have a look at the attached project. Enter some text and click the button. You’ll see that both the value of the Link as well as the Text has been updated.

    Regards,
    –mark
    URLValueApp.zip (11.5 KB)


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods


  • 3.  RE: javascript to get the value of async command URl

    Posted Tue October 04, 2011 02:03 AM

    Thanks mark, it was helpful…
    You taking the value from text input and setting it to link . But i want to take a value of link and place it to the text input. I tried writing a javascript to getValue of link but its throwing CAF.link is null or not an object.

    Regards,
    rajesh


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS


  • 4.  RE: javascript to get the value of async command URl

    Posted Thu October 13, 2011 11:05 AM

    hi,
    i was trying to get the value of async command link which is null. So CAF.link is null or not an object error was thrown.
    Actual it is the label of the async command link which was required.
    so i changed my javascript to fetch the label. It worked fine.

    thanks,
    rajesh


    #webMethods
    #MWS-CAF-Task-Engine
    #webMethods-BPMS