Hexagon Geospatial
MENU

Developer Discussions

Discuss topics with other Hexagon Geospatial Power Portfolio developers and experts to get the most out of our products.
Showing results for 
Search instead for 
Do you mean 
Reply
Highlighted
Frequent Contributor
Posts: 91
Registered: ‎11-10-2015
Accepted Solution

ShowFile issue

Hi

 

here is the error when we tryied to open a file using ShowFile : 

 

20 nov. 2015 10:14:39 SEVERE:   Open file fails! \\Frgptigpdu-apo3.sie.local\TACTIC\Documents\Ouvrages\CE0274\Documents_ouvrage\CE0274_Fiche identité.pdf                               --> [JavaFX Application Thread] com.intergraph.web.plugin.media.MediaScriptingObject.showFile

java.io.IOException: Failed to open file:////Frgptigpdu-apo3.sie.local/TACTIC/Documents/Ouvrages/CE0274/Documents_ouvrage/CE0274_Fiche%2.... Error message: Le fichier spécifié est introuvable. (can't find the file)

 

of course the same path copied pasted in windows Explorer opens the file.

is it an issue if there are blnk in the path or accent?

 

Regards

 

David

 

Staff
Posts: 890
Registered: ‎10-18-2015

Re: ShowFile issue

Hi David,

 

spaces and accents are not an issue. Can it be related to security? Is the java process running by the same user account your are using to browse the file?

 

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Frequent Contributor
Posts: 82
Registered: ‎11-17-2015

Re: ShowFile issue

Hello Stefano,

Customer can access files in the same folder which the name doesn't contain space and accent.

So the security setting is not the problem.

Yohann.

Staff
Posts: 890
Registered: ‎10-18-2015

Re: ShowFile issue

Hi Yohann,

 

what do you mean, are they able to open files from GMSC? 

BTW I'm able to open remote files where paths have spaces and accents in there with no issues.

 

Thanks,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Frequent Contributor
Posts: 91
Registered: ‎11-10-2015

Re: ShowFile issue

[ Edited ]

Sure stefano

 

it seems that the issue didn't came from the showfile but by the syntaxe below that makes it sensitive to the accent:

 

<FormField editable="false" name="lien" defaultvalue="SQL[Select CHEMIN FROM V_SC_TSCE WHERE EVENT_ID={FORM.EVENT_ID}]" visible="hidden"/>

<FormAction name="Fiche" label="Fiche TSCE" action="SCRIPT[IG.showFile(IG.getFieldById('lien').getValue())]"/>

 

Regards

 

David

Staff
Posts: 890
Registered: ‎10-18-2015

Re: ShowFile issue

Hi David,

 

thanks for the feedback,

I did not realize you were using the ShowFile in the form: have you already tried to parse it in a custom script?

 

Best regards,

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Do you need immediate support?
Please submit a Ticket through our
Development Ticket Portal.