Delete an uploaded file (in custom table) from a report
Hi,
I have a report of uploaded files (the files are saved in my own table, not in APEX_APPLICATION_FILES) - I'd like to add a delete link to each file in my report so that the user can delete a particular file.
How do I go about doing this?
Thanks.
Melissa,
It is now working. You missed couple of things:
1. javascript in the header
2. you were pointing to the page 1 and your process was on the page 2
3. you passed the value to a non existing item on the page 3
4. the request which would fire the delete process was triggered by a wrong request
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://htmldb.oracle.com/pls/otn/f?p=31517:1
-------------------------------------------------------------------
Similar Messages
-
Insert delete or update entry in Custom table from KONV entry changed
Hi All,
I have custom table ZKONV with only few required columns and should have same number of records as KONV has at any point in time.
KONV is a cluster table so its not readable from ORACLE level. So ZKONV is created. But I dont know how to keep these both tables in sync.
I need to perform insert delete or update entry in Custom table if insert delete or update happens on cluster table KONV from any transactions.
As KONV is a cluster table and does not have changed time stamp I am not able to know the number of records changed in perticulat time period.
Thanks,Thanks for reply,
There is a Outside SAP system which needs to read KONV data to feed into their system, but as KONV is cluster table they are not able to read it from ORACLE level.
To solve this we are thinking to create a transparent Z-table and will fill it with KONV and catch Update, delete or Insert statement and do same on ZKONv.
Is this possible some how? by some database event or something.... -
How to MODIFY A CUSTOM TABLE FROM A FLAT FILE
Dear Friends,
I have a requirement where i have to upload data from excel file to my custom table so i have used a FM
'TEXT_CONVERT_XLS_TO_SAP' and i have collected data into a internal table , till here i am able to get data correctly , now i hae to upload this data into a custom table .
the flat file is having 6 fields and the custom table is having
8 fields , for uploading the data into this custom table from the internal table where i have collected above iam getting problem . Actually iam using a modify statement to update the custom table .
the flat file which i have collected into the internal table is as below :
IDNo. Name Date Location Designation Dept
101 Raja 4/12/2007 Delhi Manager HR
102 James 4/12/2007 Delhi Clerk HR
Custom table is having the below fields
IDNO. Name Date Location Designation Dept Manager
101 Raja
now when i run the program iam getting the problem while usign the modify statment is the ID no which is already having
a record as IDno = 101 and manger = Raja.......with the other fields name , date, location,designation and dept as blank.
if i want to fill this fields from my flat file the modify statment
just filling all the fields for the ID no = 101 and manager field which already having Raja as being overwritten by space .....
becasue this field is not being there in the flat file.
the code iam using as follows.
The flat file is having with the below structure
TYPES: BEGIN OF t_emp_data,
IDNO(11) TYPE c,
Name(13) TYPE c,
Date(20) TYPE c,
Location (40) TYPE c,
Designation(40) TYPE c,
Dept(40) TYPE c,
end of t_emp_data.
The Custom Table(ZEMP_DATA) is having with the below structure
TYPES: BEGIN OF t_emp_data_table,
IDNO(11) TYPE c,
Name(13) TYPE c,
Date(20) TYPE c,
Location (40) TYPE c,
Designation(40) TYPE c,
Dept(40) TYPE c,
Manager(20) type c, -- this is the extra field in table
end of t_emp_data_table.
data :
it_empdata TYPE STANDARD TABLE OF t_emp_data,
it_empdata_tmp TYPE STANDARD TABLE OF t_empdata_tmp,
wa_empdata_tmp type t_empdata_tmp,
wa_empdata type t_emp_data.
loop at it_empdata into wa_empdata.
move-corresponding wa_empdata to wa_empdata_tmp.
modify ZEMP_DATA from wa_empdata_tmp .
endloop.
could any one please let me know what i have to do inorder to not get the manager field data not being overwritten with the modify statment , for the IDNo. 101 . I want the data which is already ( manager = Raja) shouldnt not be get overwritten with Space.
please help me in this regard
Regards
Madhuri.Hi,
use a slect statement before
"move-corresponding wa_empdata to wa_empdata_tmp."
select manager
from ztable
into wa_empdata_tmp-manager
where id = 100.
regards,
lavanya -
To Delete the uploaded file in Application Server
Hi Friends,
I developed an BSP Application displaying the results from ITAB though Iterator, for which , each row there is feature to upload a particular file in the Application Server, where I stored the file path into a database table field. .When I delete the the row, I am successfully get rid of the entire row including the file path.
My Question.
1. How to delete the uploaded file of the Application Server ?
Please mail me in this regard.
Regards
CSM ReddyHi,
you have the keyword and you have the documentation. What is your problem?
Search in the forums with keyword "delete dataset", there are lots of threads about this.
Example
Deletion of dataset in applicaiton server
deleting file from AL11 Tcode
Best regards
Renald -
Need help- need to read a customer table from the payroll schema
Hi gurus,
I need to read an amonunt from a customer table in the payroll schema. Is it possible to input TABLE XXXX in the schema, or is impossible to read from a customer table?Do I need to create a report to upload the amount in an infotype?
Thanks in advanced for for support!You should create your own custom operation (based on operation TABLE) to read your custom table from a Payroll PCR.
If your custom table's name is longer than 5 characters, you may be required to use operations VAOFF and/or VALEN prior to your custom operation in the PCR. -
How do I delete my uploaded files? I am on an Ipad.
How do i delete my uploaded files? There is no trash button
you must run the official iOS5 version, no developer version which likely is a beta . Use itunes 10.5 , connect your device, let it make the backups and then hit the "restore" button in itunes. This will download and install the one and only supported OS for your device.
Once you have this on it, you can install all apps, including garageband. -
How to create pdf files in UNIX directory from oracle reports
I would like to know how to create pdf files in UNIX directory from oracle reports.
Thanks,Please make your question more clear . Also mention the reports version.
1) If you are runnning reports in Unix, you can give
.... destype=file desformat=pdf desname=<filename>
in command line
Please refer docs below.
2) If by your question you mean
"My reports server is running in Windows but I want to ftp my files to Unix after creating it"
then the answer is that you can use pluggable destination "ftp"
.... destype=ftp desformat=pdf desname=<ftp url>
Pluggable destinations download
http://otn.oracle.com/products/reports/pluginxchange/index.html
Thanks
Ratheesh
[ All Docs ]
http://otn.oracle.com/documentation/reports.html
[ Publishing reports to web - 10G ]
http://download.oracle.com/docs/html/B10314_01/toc.htm (html)
http://download.oracle.com/docs/pdf/B10314_01.pdf (pdf)
[ Building reports - 10G ]
http://download.oracle.com/docs/pdf/B10602_01.pdf (pdf)
http://download.oracle.com/docs/html/B10602_01/toc.htm (html)
[ Forms Reports Integration whitepaper 9i ]
http://otn.oracle.com/products/forms/pdf/frm9isrw9i.pdf -
How to send a PDF file as a FAX from Oracle Reports 6i
Hi
I want to know how to send a PDF file as a FAX from Oracle Reports 6i. Or please post any sample code in reports that sends PDF document as FAX
Help need immediately.
Thanks in advance. my email id is
[email protected]
Arun
nullhello,
there is no native support for directly faxing a report. you could e.g. use a fax-software that has a printer-driver that supports this.
regards,
the oracle reports team -
Uploading the contents of file into custom table
Hi ,
I have a req where in i want to put the contents of the file into the Z table . I have taken a file upload UI element and in that i have taken 4 attributes as file name f, file type ,file size and file contents and binded this file contents to the data property of the UI element. Now with out explicitly defining the fields i want to put all this content of file into the Z table created for any file created or if i could put the whole text file into that table so that any one could see that file even though its not saved in the desktop for that user.
Can any one help me out?Yes i am converting it inot the lstring using the same FM which you have given. I have to store the total file but the only doubt is like if its a input field how could i save a file form. Can you please check the code i want to save the total file into the table.
DATA lo_nd_upload TYPE REF TO if_wd_context_node.
DATA lo_el_upload TYPE REF TO if_wd_context_element.
data i_data TYPE STANDARD TABLE OF string.
DATA ls_upload TYPE wd_this->Element_upload.
data lv_field type string.
data lt_file type TABLE OF ZFILE_UPLOAD.
data ls_file LIKE LINE OF lt_file.
data l_xstring type xstring.
data fields TYPE string_table.
data l_String type string.
navigate from <CONTEXT> to <UPLOAD> via lead selection
lo_nd_upload = wd_context->get_child_node( name = wd_this->wdctx_upload ).
@TODO handle non existant child
IF lo_nd_upload IS INITIAL.
ENDIF.
get element via lead selection
lo_el_upload = lo_nd_upload->get_element( ).
@TODO handle not set lead selection
IF lo_el_upload IS INITIAL.
ENDIF.
get all declared attributes
lo_el_upload->get_static_attributes(
IMPORTING
static_attributes = ls_upload ).
DATA lv_file_contents TYPE wd_this->Element_upload-file_contents.
navigate from <CONTEXT> to <UPLOAD> via lead selection
@TODO handle non existant child
IF lo_nd_upload IS INITIAL.
ENDIF.
get element via lead selection
lo_el_upload = lo_nd_upload->get_element( ).
alternative access via index
lo_el_upload = lo_nd_upload->get_element( index = 1 ).
@TODO handle not set lead selection
IF lo_el_upload IS INITIAL.
ENDIF.
get single attribute
lo_el_upload->get_attribute(
EXPORTING
name = 'FILE_CONTENTS'
IMPORTING
value = l_xstring ).
for text file conversion we have to FM
CALL FUNCTION 'HR_KR_XSTRING_TO_STRING'
EXPORTING
FROM_CODEPAGE = '8500'
IN_XSTRING = l_xstring
OUT_LEN =
IMPORTING
OUT_STRING = l_string.
SPLIT l_string AT cl_abap_char_utilities=>newline INTO TABLE i_data.
LOOP AT i_data INTO l_string.
SPLIT l_string AT cl_abap_char_utilities=>horizontal_tab INTO TABLE fields.
read TABLE fields into lv_field index 1.
endloop.
ls_upload will contain all the file details
ls_file-file_size = xstrlen( ls_upload-file_contents ) * lv_float .
ls_file-file_name = ls_upload-file_name.
ls_file-file_type = ls_upload-file_type.
ls_file-file_contents = ls_upload-file_contents.
insert ZFILE_UPLOAD FROM ls_file.
thanks -
PROCESS TO INSERT FILE INTO CUSTOM TABLE
Hello - grateful if anyone can assist.
I have followed the official guide notes but am unable to insert a line with blob file into my custom table (APEX_AM_LEASES)
Error message is as follows:
ORA-06550: line 2, column 13: PL/SQL: ORA-00913: too many values ORA-06550: line 2, column 1: PL/SQL: SQL Statement ignored.
My Process code is as follows:
IF ( :P6_DOC_UPLOADED is not null ) THEN
INSERT INTO APEX_AM_LEASES(id, CLIENT_REF, CLIENT_NAME, PROPERTY_REF, PROPERTY_NAME, TENANT_REF, TENANT_NAME, DOC_TYPE_NO, DOC_TYPE, URL, BLOB_CONTENT, MIME_TYPE)
SELECT ID,:P6_DOC_UPLOADED,:P6_CLIENT_REF, :P6_CLIENT_NAME, :P6_PROPERTY_REF, :P6_PROPERTY_NAME, :P6_TENANT_REF, :P6_TENANT_NAME, :P6_DOC_TYPE_NO, :P6_DOC_TYPE, :P6_URL, blob_content,mime_type
FROM APEX_APPLICATION_FILES
WHERE name = :P6_DOC_UPLOADED;
DELETE from APEX_APPLICATION_FILES WHERE name = :P6_DOC_UPLOADED;
END IF;Hi srikavi - thank you for your quick response. I think I get it however I have amended and am getting a new error:
ORA-06550: line 2, column 163: PL/SQL: ORA-00904: "MIME_TYPE": invalid identifier ORA-06550: line 2, column 1: PL/SQL: SQL Statement ignored
IF ( :P6_DOC_UPLOADED is not null ) THEN
INSERT INTO APEX_AM_LEASES(DOC_UPLOADED, CLIENT_REF, CLIENT_NAME, PROPERTY_REF, PROPERTY_NAME, TENANT_REF, TENANT_NAME, DOC_TYPE_NO, DOC_TYPE, URL, BLOB_CONTENT, MIME_TYPE)
SELECT :P6_DOC_UPLOADED, :P6_CLIENT_REF, :P6_CLIENT_NAME, :P6_PROPERTY_REF, :P6_PROPERTY_NAME, :P6_TENANT_REF, :P6_TENANT_NAME, :P6_DOC_TYPE_NO, :P6_DOC_TYPE, :P6_URL, blob_content, mime_type
FROM APEX_APPLICATION_FILES
WHERE name = :P6_DOC_UPLOADED;
DELETE from APEX_APPLICATION_FILES WHERE name = :P6_DOC_UPLOADED;
END IF; -
How can I update a customized table from a text document?
Hi,
I am one sample file. The file is an text document. From this .txt file how can I update a customized table in SAP.
How can I Update the fields in the Customized table.
Thanks & Regards,
NManohar.use the Function module GUI_UPLOAD or WS_UPLOAD and give the path and the file name from where the data has to be uploaded. in table parameter give the iternal table
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename =
FILETYPE = 'ASC'
HAS_FIELD_SEPARATOR = ' '
HEADER_LENGTH = 0
READ_BY_LINE = 'X'
DAT_MODE = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
CHECK_BOM = ' '
VIRUS_SCAN_PROFILE =
NO_AUTH_CHECK = ' '
IMPORTING
FILELENGTH =
HEADER =
tables
data_tab =
EXCEPTIONS
FILE_OPEN_ERROR = 1
FILE_READ_ERROR = 2
NO_BATCH = 3
GUI_REFUSE_FILETRANSFER = 4
INVALID_TYPE = 5
NO_AUTHORITY = 6
UNKNOWN_ERROR = 7
BAD_DATA_FORMAT = 8
HEADER_NOT_ALLOWED = 9
SEPARATOR_NOT_ALLOWED = 10
HEADER_TOO_LONG = 11
UNKNOWN_DP_ERROR = 12
ACCESS_DENIED = 13
DP_OUT_OF_MEMORY = 14
DISK_FULL = 15
DP_TIMEOUT = 16
OTHERS = 17
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
and finally use insert command to update the database table with the data -
Error while uploading files into FND_LOBS table
Hi All,
Hope you are all well!!
I am new to OAF.Developing a standard upload page.
Getting the below error when i am trying to uploading the file in to FND_LOBS table.
*"Error - Attribute FileId in xxsymuploadAM.xxsymuploadVO is required"*
The page was opening successfully but when trying to submit the file into fnd_lobs table getting the error.
For this i have created AM, EO and EO based VO.
Her is my code--------------------
/*===========================================================================+
| Copyright (c) 2001, 2005 Oracle Corporation, Redwood Shores, CA, USA |
| All rights reserved. |
+===========================================================================+
| HISTORY |
+===========================================================================*/
package xxsymupload.oracle.apps.fnd.upload.webui;
import oracle.apps.fnd.common.VersionInfo;
import oracle.apps.fnd.framework.webui.OAControllerImpl;
import oracle.apps.fnd.framework.webui.OAPageContext;
import oracle.apps.fnd.framework.webui.beans.OAWebBean;
import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
import oracle.apps.fnd.framework.OAApplicationModule;
import oracle.apps.fnd.framework.OAViewObject;
import oracle.apps.fnd.framework.OAException;
import oracle.jbo.Row;
import oracle.apps.fnd.framework.webui.beans.message.OAMessageFileUploadBean;
import oracle.apps.fnd.framework.webui.OADataBoundValueViewObject;
* Controller for ...
public class xxsymupload1CO extends OAControllerImpl
public static final String RCS_ID="$Header$";
public static final boolean RCS_ID_RECORDED =
VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
* Layout and page setup logic for a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
OAApplicationModule am=pageContext.getApplicationModule(webBean);
OAViewObject vo = (OAViewObject)am.findViewObject("xxsymuploadVO");
if (!vo.isPreparedForExecution())
vo.executeQuery();
Row row = vo.createRow();
vo.insertRow(row);
row.setNewRowState(Row.STATUS_INITIALIZED);
row.setAttribute("FileFormat","IGNORE");
row.setAttribute("UploadDate", am.getOADBTransaction().getCurrentDBDate());
row.setAttribute("ProgramName", "xxsymUpload");
OAMessageFileUploadBean uploadBean = (OAMessageFileUploadBean)webBean.findChildRecursive("fileUpload");
OADataBoundValueViewObject displayNameBoundValue = new OADataBoundValueViewObject(uploadBean, "FileData");
uploadBean.setAttributeValue(DOWNLOAD_FILE_NAME,displayNameBoundValue);
OADataBoundValueViewObject contentBoundValue = new OADataBoundValueViewObject(uploadBean, "FileContentType");
uploadBean.setAttributeValue(FILE_CONTENT_TYPE, contentBoundValue);
* Procedure to handle form submissions for form elements in
* a region.
* @param pageContext the current OA page context
* @param webBean the web bean corresponding to the region
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if (pageContext.getParameter("cancelButton") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.getTransaction().rollback();
pageContext.forwardImmediately("OA.jsp?OAFunc=OAHOMEPAGE",null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,false,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
else if (pageContext.getParameter("submitButton") != null)
OAApplicationModule am = pageContext.getApplicationModule(webBean);
am.getTransaction().commit();
OAViewObject vo = (OAViewObject)am.findViewObject("xxsymuploadVO");
oracle.jbo.domain.Number fileId = (oracle.jbo.domain.Number)vo.getCurrentRow().getAttribute("FileId");
String fileUpload = (String)vo.getCurrentRow().getAttribute("FileName");
OAException confirmMessage = new OAException("File "+fileUpload+" uploaded succesfully with ID "+fileId+".",OAException.CONFIRMATION);
pageContext.putDialogMessage(confirmMessage);
pageContext.forwardImmediately("OA.jsp?page=/xxsymupload/oracle/apps/fnd/upload/webui/xxsymuploadPG",null,OAWebBeanConstants.KEEP_MENU_CONTEXT,null,null,true,OAWebBeanConstants.ADD_BREAD_CRUMB_NO);
Appreciate quick response!!
Thanks,
SateeshIn EO Impl java, set the file id and other mandatory fields, something like below. You can also search OAF forum for more details.
public void create(AttributeList attributelist)
super.create(attributelist);
try
OADBTransactionImpl oadbtransactionimpl = (OADBTransactionImpl)getOADBTransaction();
String s = "select fnd_lobs_s.nextval from dual";
ViewObject viewobject = oadbtransactionimpl.createViewObjectFromQueryStmt(s);
Number number;
Row row;
for(number = null; viewobject.hasNext(); number = (Number)row.getAttribute(0))
row = viewobject.next();
if(number != null)
setFileId(number);
setFileFormat("text");
setUploadDate(oadbtransactionimpl.getCurrentDBDate());
} else
throw new OAException("AK", "AK_CANNOT_GET_FILEID");
viewobject.remove();
catch(Exception exception)
throw new OAException("AK", "AK_FND_LOBS_NOT_CREATED", exception);
Thanks
Shree -
FM for uploading data into internal table from Excel sheet
Hi,
I have a slight problem in one of the function modules that I have created. Actually it has been copied from a standard SAP function module KCD_EXCEL_OLE_TO_INT_CONVERT. Now my created function module is throwing me a dump suggesting Data objects in a Unicode program are not convertible. Can anybody help me out in removing the error .
Actually the need of copying the standard FM to a ZFM is to increase the length of the column which can be uploaded thru this FM. The standard FM has a restriction of being able to upload 32 characters whereas my requirement is to upload data having at least 150 characters. So in order to care the need I made a ZStructure ZAKHIL_CELLS taking the Value parameters as 150 characters instead of 32 characters.
Well this is all done because I wanted to upload a excel sheet into an internal table and not use a tab delimited file. Can anybody help in this regard or suggest some other function module which can upload more than 150 characters from a excel sheet .
m also attaching structure of my ZStructure for ur reference .
STRUCTURE ZAKHIL_CELLS1 .
ROW KCD_EX_ROW_N NUMC 4 Flexible Excel upload: row number
COL KCD_EX_COL_N NUMC 4 Column
VALUE KCD_VALUE CHAR 150 External Data Transfer: Values of Parameters or Variables
Thanks & Rgds,
Akhilhi,
sample excel sheet.
coloumn 1 is name and column 2 is age
name age
A 8
C 13
D 55
DATA : int_excel LIKE alsmex_tabline OCCURS 0 WITH HEADER LINE.
data : record like db_name_age occurs 0 with header line.
DATA : v_start_col TYPE i VALUE '1', "starting col
v_start_row TYPE i VALUE '1', " starting row
v_end_col TYPE i VALUE '2', " total columns
v_end_row TYPE i VALUE '10'. "total no of record
FORM f_upload .
CLEAR : int_excel, int_excel[].
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
filename = wf_filename
i_begin_col = v_start_col
i_begin_row = v_start_row
i_end_col = v_end_col
i_end_row = v_end_row
TABLES
intern = int_excel
EXCEPTIONS
inconsistent_parameters = 1
upload_ole = 2
OTHERS = 3.
IF sy-subrc <> 0.
*Message is 'Unable to upload data from ' wf_filename.
MESSAGE e169(zm050) WITH wf_filename.
ELSE.
SORT int_excel BY row col.
REFRESH : record.
CLEAR : record.
LOOP AT int_excel.
CASE int_excel-col. "go thru each column.
WHEN 1.
record-name = int_excel-value.
WHEN 2.
record-age = int_excel-value.
ENDCASE.
AT END OF row.
APPEND record.
CLEAR record.
ENDAT.
ENDLOOP.
*inserting into table
ENDIF.
if this helped pld rewrd points,
rgrds
anver -
Upload file in custom program and pass it to workflow
Hi, guys. Now, i have the requirment to allow user to upload file in the custom program and trigger the workflow with the attached file.
Any one has experience on this? i would like to know how to upload the file from custom program, and how to create instance of the BO "SOFM". Then, i can pass this instance to workflow.HI Jrockman,
Please check the solved reply in this thread
Passing a file from a report to workflow container
Hope this would solve your issue.
Good luck
Narin -
Fileaccess.HttpUploadBean not uploading file in DataBase Table
Hi,
I am using fileaccess.HttpUploadBean to upload the txt file in the specified database table.i have followed all the guidelines given in Oracle JSP Tag Libraries and Utilities Reference Guide. But i am not be able to upload the file into Database Table
I have created a table
CREATE TABLE FLK_CLOB_TEST (
FILE_ID NUMBER (5),
FILE_DATA CLOB,
FILE_NAME VARCHAR2 (50),
FILE_PREFIX VARCHAR2 (50) ) ;
uploadfile.jsp
<html><body>
<form name = "formname" action="beanUploadDataBase.jsp" method=POST ENCTYPE="multipart/form-data" />
<br>MailID: <INPUT TYPE="text" NAME="strMailId" />
<br> File to upload: <INPUT TYPE="FILE" NAME="File" SIZE="50" MAXLENGTH="120" >
<br><INPUT TYPE="Submit" NAME="Submit" VALUE="Send" >
<INPUT type="reset" name="reset" value = "Cancel">
</form>
</body></html>
beanUploadDataBase.jsp , which is having upload code.
<%@ page contentType="text/html;charset=windows-1252"%>
<%@ page language="java"
import="java.util.*,java.io.*,java.sql.*, oracle.jsp.webutil.fileaccess.*" %>
<html><body>
<Form name="upForm" method ="post" > <!--action ="beanUploadExample.jsp" >-->
<%
Connection conn;
FlkOracleDBCon objDBHelper;
objDBHelper = FlkOracleDBCon.getInstance();
String userdir = "test";
String strFlag = "";
String strFileName ="";
String strDirName ="";
String strAbsoluteName ="";
//MultipartRequest multi = null;
String _PageMode = "";//"CREATE";
%>
<jsp:useBean id="upbean"
class="oracle.jsp.webutil.fileaccess.HttpUploadBean" >
<jsp:setProperty name="upbean" property="destination" value="<%=userdir%>"/>
</jsp:useBean>
<%
try{
conn = objDBHelper.getConnection();
out.println("Connection Value is :"+conn);
if (conn !=null)
// upbean.setDestination("test");
upbean.setDestinationType("database");
upbean.setConnection(conn);
upbean.setOverwrite(false);
upbean.setFileType("character");
upbean.setTable("FLK_CLOB_TEST");
upbean.setPrefixColumn("File_Prefix");
upbean.setFileNameColumn("File_Name");
upbean.setDataColumn("File_Data");
//upbean.setBaseDir(application, request);
String str = upbean.getDestination();
out.println("The value of Destination is "+str) ;
upbean.upload(request);
String filename = upbean.getFileNameColumn();
String strTable = upbean.getTable();
String strPrefix = upbean.getPrefixColumn();
String name = "";
conn.commit();
out.println("filename-----:::::: "+filename+":::");
out.println("File Prefix-----:::::: "+strPrefix+":::");
out.println("DataBase Table Name-----:::::: "+strTable+":::");
Enumeration fileNames = upbean.getFileNames();
while (fileNames.hasMoreElements()) {
strFlag = "true";
strFileName = (String)fileNames.nextElement();
out.println("strFileName File Name Is:::::"+strFileName);
strAbsoluteName = strFileName.substring(4,strFileName.length());
catch(IOException ex)
out.println("IOException is =="+ex.toString());
catch(SQLException ex)
out.println("IOException is =="+ex.toString());
catch(Exception ex)
out.println("IOException is =="+ex.toString());
%>
This is not uploading file or any other information into database table called FLK_CLOB_TEST.
Please help me on this.I get the same error when i try to load the same data but from Oracle Table
11872 12108 RUN-050406 11/14/2011 4:38:44 PM Data flow <DF_TB_Generalità> received a bad system message. Message text from the child process is
11872 12108 RUN-050406 11/14/2011 4:38:44 PM
< ==========================================================
when i load data from SAP extractors or SAP tables i don't have problem.
Regards
Bilal
Maybe you are looking for
-
A portion of my update has stalled
A portion of my iPad update has been installed and the apps that will not update have been highlighted in gray with a clock symbol. Turning the ipad off and back on does not help.
-
Delete Overlapping Requests - by Filename via ABAP Routine
Hi SDN Community Do you know if it is possible to set the delete overlapping request parameters to recoginse the file name, and remove it via the derivation of the file name via an ABAP Routine. I am using an ABAP routine to derive the flat flat file
-
Lenovo OneLink Dock with Multiple Monitors
Hi, I ordered an S431 (which only has one HDMI port for display output). I currently use two monitors from my laptop, and was wondering if the OneLink dock would allow me to continue to do so. Would I be able to connect to one monitor using the HDMI
-
HELP! HELP! HELP! HELP! HELP!
HELP!!!!!!!! i just got this macbook pro 13' with mac os x 10.6.7.. and just a few minutes ago.. was charging my laptop while using it and it was normal.. then suddenly the laptop was really really really hot so i checked the temp using istat.. then
-
I am doing a slide show project for class using PSE 13. I noticed one of the pictures is cut off a bit a the top of the slide when shown, why and what can I do ?