BookmarkSubscribeRSS Feed
Calcite | Level 5

I have a javaScript applications made using Sencha Ext-JS which displays a grid I have populated with data from SAS and allows the user to update the grid. When the update is made it calls a stored process and uses the POST method to pass JSON data to it representing the changes that were made in the grid. When I run this in Chrome I can see the "Request Payload" as the Chrome debugger calls it, which shows the JSON string being passed to the stored process. However in the stored process I cant workout how to access this POST data. In the past I have often used forms with the GET method and parameters are passed as part of the URL, so they are easily able to be picked up in the stored process. However with this POST method I dont know where they are. I suspect they are probably in some kind of stream, and so I probably need to define a new data source for the stored process to read. I tried a few variations on this, which didnt work - and it doesnt seem to be very extensively documented.

Please can you tell me how to read the POST data sent from javaScript from my Stored Process?


Phil Mason

Lapis Lazuli | Level 10

Hi Phil,

It's much simpler than that - they should be no different to the GET requests. How are you adding the POST payload in ExtJS?



Registration is open! SAS is returning to Vegas for an AI and analytics experience like no other! Whether you're an executive, manager, end user or SAS partner, SAS Innovate is designed for everyone on your team. Register for just $495 by 12/31/2023.

If you are interested in speaking, there is still time to submit a session idea. More details are posted on the website. 

Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Get the $99 certification deal.jpg



Back in the Classroom!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 2 in conversation