M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Frequent Contributor
Posts: 105
Registered: ‎01-20-2016
Accepted Solution

Workflow - Upload vector data



is there any simple description on how to implement an upload button for vector data?

I use the "File Widget" for selection, but don't know which upload folder to address: to the warehouse folder or to the folder where all raster and vector data is stored.


Then I place an Action Widget and do not know which kind of trigger to define.


Any help appreciated,


Posts: 1,098
Registered: ‎10-18-2015

Re: Workflow - Upload vector data

[ Edited ]

Hi Ruth,


here is a sample in which I'm uploading files on a folder on the server. To get a complete overview of all the possibilities please check this tutorial.


This is my form configuration:


I'm uploading a file in a folder based on the ShapeFolder formfield (in my case I'm generating a unique name for the folder to have each set of files stored in different locations, but this is up to you). In the properties I've set a list of Fileextensions enabled and the possibility to upload Multiple files.

My Upload button looks like this:

IG.trigger({triggerNames:['FilePathUploadTrigger'], reloadFields:[]})
.done(function (result) {
IG.getItemById('UploadComplete').setValue('Upload complete')

When the user uploads the files the text (UploadComplete formfield) "please upload all of the files..." will be changed to "upload complete"


This is my SqlFileIteratorTrigger (method is action since I'm running it from the Upload button):


ShapeFile is the name of my File widget (the label you can see in the first image is "Files to upload").

The Sql parameter of the SqlFileIteratorTrigger is mandatory, but since we are not using the DB you can put any selection in there.





Stefano Turcato
Presale Engineer
Hexagon Geospatial
Frequent Contributor
Posts: 105
Registered: ‎01-20-2016

Re: Workflow - Upload vector data



perfect description. Now I have it up and running!