Thanks a lot!
- Log in to post comments
Thanks a lot!
Removed post. (Made stupid mistake.) Thanks Timothy!
True: mixed-content.
So I'll just hade to find out how to redirect an url to CSP when not using .cls in the url.
Yes indeed.
Hmm, i've visited your links but still I don't know what to do, my knowledge on this area is very limited.
As for your reply about not using cache's own webserver: I can't change that situation now. But csp (and weblink)have been installed on the iis-webserver and througt that server the cache's database server is being apporached.Apart from this rest-call. So maybe the problem is that I use a rest-url straight to the cache-server in stead of using the webserver? Best regards, Simon
Thanks to you all, I got it working now.
Best regards,
Simon
Where should I get the output HTML-page?
Thanks,
Simon
Hi Henrique,
I don't have any code for this api yet but I do have one for (for example) JSON:
ClassMethod newOrder() As %Status {
S dataToProcess=%request.Content.Read(32000)
s dataToJSON=$TR(dataToProcess,"'"," ")
s dataToJSON=$TR(dataToProcess,"""","'")
s ^simonupload(2)=dataToJSON
S dataToJSON=##class(Util.JSON).Decode(dataToJSON)
s ^simonupload(3)=dataToJSON
s ^simonupload(4)=dataToJSON.GetAt("Opmerkingen")
s ^simonupload(5)=dataToJSON.GetAt("Bijlagen").GetAt(1)
quit $$$OK
}
This works for receiving JSON.
But I don't know how to do it with Form Data.
Thanks! I'm running it in IE through Weblink, but I understand what you're doing.
But it need to be somewhat more flexible, because it can hold thousands of questions.
(I need to be able to change positions of the questions/answers for example, all that flexibility)
Best regards,
Simon