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 
Reply
Highlighted
Contributor
Posts: 63
Registered: ‎02-22-2016

FormField with type="hyperlink". Folder name has spaces

Here is an example with static default value

 

 

<FormField name="TEST" persisted="false" type="hyperlink" defaultvalue="file:///C:/DPSTestDrawings/Affection Plan/JVC2016P1-2.pdf"/>

 

 

The path to the file has a folder name "Affection Plan" with <SPACE> in between. It is not working like that.

I tried same example with space removed and folder renamed, then it works.

 

Tried %20 instead of space. That didn't work either.

 

Any suggestions?

Highlighted
Staff
Posts: 1,108
Registered: ‎10-18-2015

Re: FormField with type="hyperlink". Folder name has spaces

Hi Vipanth,

 

have you tried by manipulating the string in a custom script? I'm not sure if a simple single quote is enough or you have to use some encoding...

 

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 63
Registered: ‎02-22-2016

Re: FormField with type="hyperlink". Folder name has spaces

Hi Stefano,

 

Just tried to add space through Javascript with following characters.

 

'\xa0'

and 

String.fromCharCode(160)

Didn't Work.

 

Regards,

Vipanth