GMSC Discussions

GeoMedia Smart Client community discussion board is where you can create, contribute and share information and knowledge in regards to configuring as well as working with GeoMedia Smart Client. Find your answers, share your knowledge and help build a strong GeoMedia Smart Client community.
Showing results for 
Search instead for 
Do you mean 
Posts: 54
Registered: ‎05-30-2016

GMSC - browse to file and store file path in database

Our client has big files, to whom he wants to save the path including filename in a database field, but not upload them to attach them to a feature.

So we look at ways to open from a workflowform a file browser, browse to the file, select it and then save the path.


As we don't want to upload the file itself, we can't use the FormFile field type. Is there a way to open a browser form a workflow form and then just get the file path information.



We will later build an action to retrieve the file with the path information that is stored in the db.


Could you advise us how to achieve this?

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

Re: GMSC - browse to file and store file path in database

hi Gideon,


we have analyzed and discussed your requirement, unfortunately there is not an easy and just client side solution. For security reasons the browser do not allow to pick the full path on the client side (please check this post), so basically the FormFile or any other widget cannot be used. 

There are a couple of alternatives:

  1. building your own logic with a list of predefined paths can be used; in your form you may have something like a combobox to select from a list and the selected item will be translated to a path 
  2. using a catalog to crawl the files and then, from the user perspective, search and retrieve the path of the files through the catalog API 

Hope this may help you.


Stefano Turcato
Presale Engineer
Hexagon Geospatial
Posts: 54
Registered: ‎05-30-2016

Re: GMSC - browse to file and store file path in database

HI Stefano,

after other tasks we are back on this.


We understand the 1. solution. I think it is implementable. We thought about a two field solution, one with a picklist of possible paths and one with the file name. And then having a not editable field that is concatenating both fields.


We would prefere that they don't write the filename maually to avoid misspellings. Is there a way to select only the filename and save it as a text value in a form field? Like with the formfile without uploading anything,only storing the filename as text.


The 2. option is not clear to us. Are you talking about a Catalog that is out of the box in Smart Client, or an external solution, that would need to be developed?


Thank you!