11-23-2015 09:39 AM
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
Solved! Go to Solution.
11-23-2015 11:48 PM
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
12-01-2015 06:49 AM
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.
12-01-2015 12:59 PM
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
12-03-2015 09:28 AM - edited 12-03-2015 09:29 AM
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
12-04-2015 12:19 AM
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