I am trying to use upload.csp as a template for choosing a CDV file to process. I am calling it from a zen page using this: <button caption="Import Client Consultation Extract" controlStyle="width:500px; height:100px; font-size:1.5em;"
I'm new to ZEN . I want to create a Zen web page to upload a local file & save it to server and download the same file to other sever.
This needs to be implemented without unix access (using only IRIS code only).
I gave it a try with below basic code (just to upload file) , the page is loading with file uploader but after uploading a local txt file, the pFile object is not getting created.
$IsObject (pFile) is returning 0.
Please assist!
Thanks in advance!
Class MyApp.BasicFileMgr Extends %ZEN.Component.page {
I am writing a little app where I press a button on a Zen form. It calls a ZenMethod that uses zenPage.launchPopupWindow() to provide me a way to choose a file. I then click on an upload button that calls a csp cache language script file that runs on the server, that grabs the contents of the file and stuffs it into a global. I want it then close and return to the parent window to continue processing the contents of the file.