86
Views
2
Comments
Solved
[OutSystems Data Grid Web] Rest URL Multiple Parameters Data Grid
Question
outsystems-data-grid-web
Web icon
Forge asset by OutSystems

Hi,

I've been trying to get the Data Grid to work with a SOAP Service that has multiple input parameters.

For the URL, as soon as I add the third parameter of Area I get the following error


An exception occurred in the client script. Error: Cannot read property 'outsystemsOptions' of undefined 



Even when adding as 1 parameter, and splitting it I get the same error

Is this method redundant? How do I send multiple parameters into my exposed rest api?


GetOwnerURLPath()+"rest/Totals/GetTotals?
Month="+Month+
"&Year="+Year+
"&Area="+Area
2020-11-26 09-30-54
Ricardo Valim
Solution

Hi,


DataGrid doesn't support SOAP, it was designed only for Rest services. Although you can develop an intermediate layer using Rest to access your SOAP service.


In the attachment you will find a sample made for you, there are two files inside the ZIP:

  • DataGrid_SOAP_Service.oml - defines the SOAP service
  • DataGrid_SOAP.oml - Consumes the SOAP service by the service GetOrdersRest.


Regards,

Ricardo Valim

DataGridSOAP.zip
UserImage.jpg
Edward S

Hi Ricardo.


I think my Rest URL was wrong. I copied the one from your POC and amended to my parameters and it worked. I think it needs to be in one long as when I clicked enter it seemed to break. Thanks for your help. I like how you've broken down your POC too. Thanks


GetOwnerURLPath()+"rest/Totals/GetTotals?Month=" + Month + "&Year=" + Year + "&Area=" + Area
Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.