Question

How to build an interactive HTML page

  • 16 February 2022
  • 2 replies
  • 38 views

Badge +11

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

Userlevel 5
Badge +29

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/

Userlevel 4
Badge +25

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.

Reply