Adding data elements to msbox.js via mboxParameters() function



I want to load some data elements into my mbox.js so that I can access them from every mbox. 

The satellite calls are


The interface doesn't provide a syntax for multiple parameters.


Accepted Solutions (1)

Accepted Solutions (1)



Hi Dean,

The way to pass in multiple key/value pairs is to separate them with an & symbol. 

So yours would be 

return 'pageName='+_satellite.getDataElement('PageName') + '&' + 'formType='+_satellite.getDataElement('FormType');

The best way to test this would be to add this code to your mbox.js file then download the newly created file and use an override in a tool like Charles with MapLocal to make sure your parameters are coming in as you expected.

Hope that helps.