Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn YouTube
Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Upload file with webfocus
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] Upload file with webfocus
 Login/Join
 
Gold member
posted
Hello ,
I need your help .
I want upload files with webfocus and if is not possible, with jquery.

I use

Thank you for all.

Good day.

This message has been edited. Last edited by: <Kathryn Henning>,
 
Posts: 62 | Registered: September 18, 2008Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Can you redirect to another webpage or insert some AJAX code with -HTMLFORM?


7.66 and 7.704
System: Windows / AIX / Linux
Output: Mostly HTML, with some PDF, Excel and Lotus(!)
 
Posts: 147 | Location: Toronto (GTA) | Registered: May 25, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
Could you elaboarte on this?       "... with webfocus ... with jquery ..." What kind of files?


   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Most recent: 8204 Gen 48 in Test and Production.
   Currently Available. Please contact me.
 
Posts: 3040 | Location: Middle Tennessee [8204M Gen48 in Test&Prod] | Registered: February 23, 2005Reply With QuoteReport This Post
Gold member
posted Hide Post
Thanks Doug by you answer.

The files are .cvs

Do you have any example please please?

I want copy preee.csv in c:/../documents/ to other rute for example server/files/

Good day.
 
Posts: 62 | Registered: September 18, 2008Reply With QuoteReport This Post
Platinum Member
posted Hide Post
As long as the target server is visible to the WebFOCUS server you can use a command line from within a FOCEXEC to do what you want. For example

[DOS, WINNT, UNIX, etc] [copy, cp, del, mv, etc] source target


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Reply With QuoteReport This Post
Silver Member
posted Hide Post
Alex, can you give a more detailed code example of how you would do that?


Prod/Dev: WebFOCUS 8.0.06 on Windows Server 2008/Tomcat , WebFOCUS DevStudio 8.0.06 on Windows 7
 
Posts: 31 | Registered: April 22, 2013Reply With QuoteReport This Post
Gold member
posted Hide Post
Please i need more information of this.

I need send a file type .csv to other folder.

than you for all
 
Posts: 62 | Registered: September 18, 2008Reply With QuoteReport This Post
Platinum Member
posted Hide Post
In your FOCEXEC you can execute a command line by preceding it with the System and then the command. In windows you'll need to map a drive. In other systems you'll need to use the syntax appropriate to the system. You can get more information on this by searching for "operating system commands" in you Dev Studio help or on the tech support search page.
DOS (or WINNT) copy c:\ibi\apps\baseapp\xxxx.csv z:\folder\subfolder


WF 7.7.04, WF 8.0.7, Win7, Win8, Linux, UNIX, Excel, PDF
 
Posts: 175 | Location: Pomona, NY | Registered: August 06, 2003Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Are you uploading from the browser client to the WebFocus server or from the WebFocus Server to another server of mainframe?

From the server have WebFcous write an FTP script and call the OS to have it run. Or just have WebFcous write to the other systems disk or a disk share by both systems

From the browse client write a script to write WebFocus disk Then call WebFocus to process the file. Or just send the file up in blocks which will fix in a 4096 character web query string (yes this is not elegant but I seen it work for small files and it reduces security concerns)


Jim Morrow
Web Focus 7.6.10 under Windows 2003
MVS 7.3.3



 
Posts: 129 | Registered: June 01, 2005Reply With QuoteReport This Post
Expert
posted Hide Post
What we have done is create jsp to upload files to specified locations.

Should be easy enough to create one.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.06OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Know The Code

 
Posts: 6131 | Location: 33.8688° S, 151.2093° E | Registered: October 31, 2006Reply With QuoteReport This Post
Gold member
posted Hide Post
Waz,

Would you be able to provide a snippet of your code ?


Tharun Katanguru
SBOX- 8205 DEV/TEST/PROD : 8105 8205
Linux, All Outputs
 
Posts: 52 | Location: BOWL OF PASTA | Registered: October 13, 2016Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Upload file with webfocus

Copyright © 1996-2018 Information Builders, leaders in enterprise business intelligence.