Thinking about it, I'm just passing the value to a JavaScript script, that part is more HTML. Maybe that makes it easier - or perhaps it's easier to actually do that part in the script. Hmmm.
Hey Mark, not sure if you're still stuck on this...
You probably want to be using the FME Server Javascript API to make the call to the streaming service, then get the result using a callback function. Once you've got the result you can set the fillgauge1 value.
Documentation for the streaming service call is here:
https://playground.fmeserver.com/javascript/javascript-library/server-documentation/
On the above page, look at the definition for:
"FMEServer.runDataStreaming( repository, workspace, parameters, callback ) , return Object "
You're going to need to learn about callback methods and how they work (which is a bit beyond the scope of what can be explained in my answer here!).
Hope that helps... I don't have any sample code I can send at the moment but if you need something I can probably mock something up relatively quickly.
Nic
Hey Mark, not sure if you're still stuck on this...
You probably want to be using the FME Server Javascript API to make the call to the streaming service, then get the result using a callback function. Once you've got the result you can set the fillgauge1 value.
Documentation for the streaming service call is here:
https://playground.fmeserver.com/javascript/javascript-library/server-documentation/
On the above page, look at the definition for:
"FMEServer.runDataStreaming( repository, workspace, parameters, callback ) , return Object "
You're going to need to learn about callback methods and how they work (which is a bit beyond the scope of what can be explained in my answer here!).
Hope that helps... I don't have any sample code I can send at the moment but if you need something I can probably mock something up relatively quickly.
Nic
Hi Nic.
Thanks for that. You know, I didn't even think of using the Server API! I just thought read it through the web service. That's a facepalm on my part for sure.
It's not too urgent now, but if I find time to go back and play with this, I'll certainly look into that call.
Cheers.
Mark
It's pretty easy to use a json streaming service with JQuery, happy to provide sample code.