1
0
-1

I'm calling a a DDS on the Page Change event on the Page Controller in Maestro. The intent is to pass in (most of) the form data, as well as the current page and the page the user is navigating to.

 

I was hoping that the following would do the trick, but TM doesn't seem to receive any of the params data:

 

var params = new Map()

var serviceName = "Dynamic Data Service"
var currentPageNumber = Form.getCurrentPageNumber()
var formXml = Form.getDataXml(false, true)

params.set('businessObjects',data)
params.set('currentPageNumber', currentPageNumber)

DynamicData.call(serviceName, params, null , false)

 

How can I pass in my own set of params so that they are available in my Groovy service?

    CommentAdd your comment...

    2 answers

    1.  
      1
      0
      -1

      I don't think the DDS interface on the server side would support Maps. Instead, use an Object.

       

      var params = {
        businessObjects: data,
        currentPageNumber: currentPageNumber
      };
        CommentAdd your comment...
      1.  
        1
        0
        -1

        Try params.currentPageNumber = currentPageNumber

          CommentAdd your comment...