Use rest service print parameters in a workflow
I have a site with a print template loaded. I would like to call this print template and input parameters gathered in a workflow. there would be some simple if statements to take the user's input and provide the correct parameters to the print command.
Below is an example of the url statement with some of the parameters entered. is it possible to execute this function in a workflow, and raise the result pdf to the screen?
-
When you use the f=file option when accessing the rest service print command, it generates a pdf file as specified, but the name of the pdf uses the url entered as the filename.pdf
which causes the pdf reader to fail to load it.
using the f=html option just takes you to the rest site and gives you a download button, which is ver clunky.
using the f=pjson a json statement is generated
{
"href" : "http://ilmorso3gi6vm.blm.doi.net/Geocortex/Essentials/REST/TempFiles/print.pdf?guid=669eb870-1169-4105-aa60-bcf44e020721&contentType=application%2Fpdf",
"isAsync" : false
}
I do not know how to parse the json return into a link as below:The print command in essentials does not take arguments, so thats why I am looking into calling the geocortex rest service's print functions. but I need some help getting there.
Jeff
0 -
When I open my site on geocortex rest services and execute the printtemplates command, the output created uses the entire path as the file name. this of course will not work. I believe its a bug!!! but how can you change the default name produced by the f=file option?
need some help here!!!
Jeff
0
Please sign in to leave a comment.
Comments
2 comments