Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] HTML Webfocus Upload client file to webfocus server directory

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] HTML Webfocus Upload client file to webfocus server directory
 Login/Join
 
Gold member
posted
Does anyone know how upload user file to webfocus server directory with html Composer or with html code ? Confused

This message has been edited. Last edited by: Kerry,


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
 
Posts: 92 | Location: France | Registered: July 08, 2009Report This Post
<JG>
posted
What sort of file? For what purpose?

You could do it by calling either an ASP or PSP page.

for example an ASP page would be something like
 
<%@ Language=VBScript %>
<%Option Explicit%>
<!-- #include virtual ="wfapps/upload.asp" -->
<%
Dim Uploader, File
Set Uploader = New FileUploader

Uploader.Upload() 

If Uploader.Files.Count = 0 Then
	Response.Write "<P> <font size='6' color='#FF0000'><b><i> Please select file to upload</i></b></font></p>"
  Response.Write "<br> "
	Response.Write "<INPUT TYPE=Button VALUE='Close' onClick='window.self.close()'>"

Else
	For Each File In Uploader.Files.Items
			File.SaveToDisk "d:\ibi\apps\ibisamp\"
			
	Response.Write  "<P> <font size='6' color='#0000FF'><b><i>" + File.FileName + " has been uploaded to the server</i></b></font></p>"
	Response.Write  "<br> "
	Response.Write  "<INPUT TYPE=Button VALUE='Close' onClick='window.self.close()'>"

	Next
End If
%>
 
 
Report This Post
Gold member
posted Hide Post
I want to upload excel file or flat file.
Thanks for your example.
But i don't want to use asp or php..

I just wan to use Webfocus or maybe java programm. Is it possible ?


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
 
Posts: 92 | Location: France | Registered: July 08, 2009Report This Post
Gold member
posted Hide Post
So maybe is so easy to call asp code on webfocus html page.
I don't know how ? can you explain how can i do please ?


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
 
Posts: 92 | Location: France | Registered: July 08, 2009Report This Post
<JG>
posted
Quite easy to call an ASP/PSP

Create a focexec that you execute containing the following

Where /wfapps/Upload.asp is the relative url to your asp.

 
-HTMLFORM BEGIN
<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY>
<FORM name="f1" METHOD="POST" ENCTYPE="multipart/form-data" ACTION="/wfapps/Upload.asp">
 <script laguage="javascript">
<!--
 if (location.search !="")
 { var x = location.search.substr(1).split("&")
  for (var i=0; i<x.length; i++)
  {
   var y = x[i].split("=");
   document.writeln('<INPUT TYPE="hidden" NAME="'+ y[0] + '" value="' + y[1] +'"')
  }
 }
//-->
</script>
 <TABLE BORDER=0>
 <tr><td><b>Select a file to upload:</b><br><INPUT TYPE=FILE SIZE=50 NAME="FILE1"></td></tr>
 <tr><td>
  <INPUT TYPE="hidden" NAME="saveto" value="disk" >
 
 </td></tr>
 <tr><td align="center"><INPUT TYPE=Submit VALUE="Attach" ></td></tr>
 
 <tr><td align="center"><INPUT TYPE=Button VALUE="Cancel" onClick="window.self.close()"></td></tr>
 </TABLE>
</FORM>
</BODY>
</HTML>
-HTMLFORM END
 
 
Report This Post
Gold member
posted Hide Post
I'm sorry but i don't understand.

I will copy/past your fist script on file upload.asp.

I will put this file on directory \\ibi\Webfocus76\ibi\html
I try to call it with : Action="/ibi_html/upload/asp"

I think there are something wrong (it's not work)
For a good understanding, can you give me an example of right directory please ?

Thanks a lot.


Webfocus 8.201M.
Windows
InfoAssist +
Chrome, IE, Excel, HTML; PDF, AHTML,GRAPH
 
Posts: 92 | Location: France | Registered: July 08, 2009Report This Post
<JG>
posted
JACQUETL,

Put upload.asp in \ibi\apps\baseapp

The folder you use must be visible to the webserver.

change d:\ibi\apps\ibisamp\ in upload.asp to point to a directory in the APP PATH that you have write authority to.

create a focexec called upload.fex in baseapp
and copy in the second lot of code that I posted
but change /wfapps/Upload.asp to /approot/baseapp/Upload.asp

Run upload.fex from devstudio to test, everyhing should work.
If you get scrit errors in the browser you will have to alter the browser
security settings.
 
Report This Post
Virtuoso
posted Hide Post
.


This is closed???

J.


.



 
Posts: 1012 | Location: At the Mast | Registered: May 17, 2007Report This Post
Member
posted Hide Post
Hi Everyone.

I know this topic is very old.... but I'm trying to do it and still doesnt´t work

The HTML page seems dead.

I'm not sure if WebFocus can treat with this asp code.

Any help will be apreciated

I'm going nut with that so please.... give me any suggestion to save a file located on the client side (and chosen by the user) to the server side.


WF 8.1
Windows Server 2008
SQL Server 2012
 
Posts: 24 | Registered: September 04, 2013Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] HTML Webfocus Upload client file to webfocus server directory

Copyright © 1996-2020 Information Builders