I am trying to get datalist value in my adf application and i can use GETmethod properly but at one place i need to call POST method so how can i call post method with body?
Hi as from documentation that you can find in the alfresco-js-api repository:
you need to change the input parameters.
executeWebScript(httpMethod, scriptPath, scriptArgs, contextRoot, servicePath, postBody)
The first httpMethod as to be 'POST'
The last parameter the postBody.
So in your case for example:
this.alfrescoJsApi.core.webscriptApi.executeWebScript('POST', 'slingshot/datalists/data/node/workspace/SpacesStore/ce744915-6130-40b8-9c57-6b7c442f656f',null, null, nul, postBody )
Hi Guys,
The webscript api is marked as deprecated. Can anyone comment on what should be used in its place if you want to call a custom webscript?
Regards
Brian
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.