Is it possible to get the full file path from 'File Picker' in workflow?
Hi guys,
I'm working on a workflow where I want the user to select a file using File Picker via the Display Form.
That files directory (e.g. C:\Users\user\Desktop\file...) is then passed as a variable into a Python script that is running as a Geoprocessor.
When using the file picker input in workflow the argument type is "System.Collections.Generic.iList<Geocortex.Forms.Client.FileItem>"
Looking up help all I could see for the FileItem properties was FileData and FileName. I tried using FileName but it does not return the directory string, instead just the actual file name.
In conclusion, is there any way to get a directory from the File Picker form input in workflow, and if not is there a better solution to passing a directory into a variable in a workflow.
0
-
It's old but there's a video here that demonstrates how to use the Filepicker and WriteFile. You can add ReadFile to use the file.
https://support.geocortex.com/essentialsGSCVideo?sub-nav=videos&main-nav=essentials&#!/feedtype=SINGLE_ARTICLE_DETAIL&criteria=BESTANSWERS&id=kA560000000CatFCAS
Wayne Richard
Latitude Geographics Group Ltd.
Head Office: 300 – 1117 Wharf Street Victoria, BC Canada V8W 1T7
Tel: (250) 381-8130 | Fax: (250) 381-8132 | wrichard@latitudegeo.com
Developers of Geocortex web-based mapping software | www.geocortex.com
An Esri Platinum Business Partner0 -
Thanks for the quick replies, i will have a look, try implement a few different solutions and see how i go! 0 -
decided to use the create temporary file option then ill directly link to the temporary file in the python script,
However the output from create temporary file is a set of folders with byte data, is there anyway to get it to copy the actual file across?
0
Du måste logga in om du vill lämna en kommentar.
Kommentarer
3 kommentarer