IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

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

Evaluating variable in Js on DSP Page

  • 1.  Evaluating variable in Js on DSP Page

    Posted Tue October 27, 2015 09:25 AM

    Hi all, I’ve got what is probably a simple problem but I just can’t figure it out!

    I have a DSP page that invokes a service to select records from a SQL database. On the string list it returns, in the service I run pub.list:sizeOfList to get a number of how many values there are.

    What I want to be able to do, is display an alert in the DSP if the value is more than one. This is what I’ve got so far:

    Script:

    
    <script>
    function myFunction() {
    var x = %value BizFuncCount%
    var y = 1
    if (Number(x) > Number(y)){
    alert("Select correct BIZ_FUNC, then press bottom submit button");
    }
    else
    {
    alert("Script test");
    }
    }
    </script>

    This function is called on the submit button. Where am I going wrong?


    #Integration-Server-and-ESB
    #webMethods-General
    #webMethods