Hi All,
I am relatively new to the domain of K2 so please bare with my silly questions.
My query is that I need to know if there is any solution for K2 control to kind of auto-load the document which has been recently scanned and saved on to the local PC. I know this is a very complicated requirement that we are trying to implement.
So if any one have any solutions to this, please do let me know.
Thankyou.
What do you mean by auto-load in this context?
Show it in the browser?
Upload it to a server for further processing?
Cheers
Hi Paul,
By auto-load, what I meant is that the attachment file control in the K2 form should be able to get hold of the most recently scanned document which would be saved in local PC folder. And yeah it would be reflected on the browser where the form is opened.
So if the user scans a document of certain type, it would save in a particular folder from which the form would sort of auto-load it once the form is initialized.
Hi
I don't think what you are attempting to do would be possible as you can't tell the file control to populate (without a user uploading a file to the control) a file that doesn't come from a SmartObject property, also displaying user files in the browser without them being served up from some kind of web server would be difficult.
The closest I have done in the past is to scan the files to a shared directory then use some code to read the files in that directory (I think there's a file reading service broker that you could use in conjunction with a workflow) and save them in to SharePoint, which you can then use to display them.
This obviously isn't ideal and there would be some lag in this and is pushing all the files to the server.
Cheers
You could use the K2 web apis for starting processes: https://help.nintex.com/en-US/k2five/devref/5.5/default.htm#Runtime/WF-REST-API/WF-REST-API.htm
Examples here: https://help.nintex.com/en-US/k2five/devref/5.5/default.htm#Runtime/WF-REST-API/Workflow-REST-API-Sa...
And if you use the file service: https://community.nintex.com/t5/K2-Five-blackpearl/File-Service-Broker-v2-0/ta-p/177198 as part of that process you could read the file from a share and do what you want with it.
Cheers