Skip to main content
Question

How to build an interactive HTML page

  • February 16, 2022
  • 2 replies
  • 203 views

whkarto
Contributor
Forum|alt.badge.img+14

Hi guys,

 

I'm trying to set up an html-based application that allows assignment of attributive information. The html page comes out of a Serverapp and is presented to the user by a Data Streaming service. Currently I only manage to create a static page tha visualizes the "as is" situation.

Is there a way to turn this page into an interactive mode, that re-establishes communication with FME Server on user request (button click etc.)? Does FME provide technology to fetch user input from text fields, context menues or any other gui object present on the page straight out of the browser?

 

Looking foward to your answers!

2 replies

hkingsbury
Celebrity
Forum|alt.badge.img+51
  • Celebrity
  • February 16, 2022

You'd need to look at writing and inserting Javascript into the HTML file before its written out in the wokrbench. This would all be custom code specific to your use case.

 

For communicating back with FME Server, have a look at the JS API

https://playground.fmeserver.com/javascript/javascript-library/get-the-library/


mark2atsafe
Safer
Forum|alt.badge.img+43
  • Safer
  • February 18, 2022

I took a brief look at this issue in my Question-of-the-Week video. You can find the relevant content here: https://www.youtube.com/watch?v=xGvG5z447ps&t=1272s

I hope you find this useful.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings