Page 1 / 1
Hi, I want to make a customized web app and using this web page i want to upload a zip file, I have created all the process, I have published the workspace as data download in fme server, when I go RUN and get the DIRECT URL , but I want to input the parameters through web page, like the zip file, project name and the email. How can i do it?
Thanks
You can use the FME server rest api. Here are some examples with javascript:
The FME server rest api does not handle emails all that well.
You can either put an FMEServerNotifier in your workspace and run it via the api, or use the direct url method with an opt_requesteremail parameter (https://docs.safe.com/fme/html/FME_Server_Documentation/Content/ReferenceManual/service_datadownload.htm)
In both cases you can follow the links @stalknecht provided in order to upload the zipfile.
Hi @mjoarder_pln
Have you seen our demos playground? http://playground.fmeserver.com/demos/
Some of these examples may do want you are after and there are corresponding Knowledge Centre articles about the demos. Or can use the documentation that @stalknecht has linked to or http://docs.safe.com/fme/html/FME_REST/v2/apidoc/index.html
Hi @mjoarder_pln
Have you seen our demos playground? http://playground.fmeserver.com/demos/
Some of these examples may do want you are after and there are corresponding Knowledge Centre articles about the demos. Or can use the documentation that @stalknecht has linked to or http://docs.safe.com/fme/html/FME_REST/v2/apidoc/index.html
Hi, thanks, actually I have seend lot of documentations and demos, but nothing fits with my case. I did not find any example to put published parameters by an User. For eaxmple, my data upload service has three published parameter , 1. drag n drop zip file, 2.give e name for the project and 3.email to administrator. Please send me any reference which fits my case, i will be greatful. Thanking you, and have a nice weekend.
Unless I am misunderstanding, the example form at the bottom of Upload File Drag and Drop demonstrates how a custom web form can be built that both (1) includes a drag-and-drop box for the source file and (2) lists all Published Parameters of the FME Workspace (which could have included 'project name' and 'email' fields).
The source HTML is available as a download – look for the "Download Source" button next to the header.
Specifically, there is Javascript built-in to the HTML that controls the drag-and-drop box, and FMEServer.getWorkspaceParameters and generateFormItems will dynamically list the workspace parameters.
There is undoubtably other ways to achieve what you are looking for. If this does not satisfy your requirements, please let us know some more details – perhaps by referencing an existing webpage – of what you are looking for.
Cheers