Manually populating Excel File
Guys,
For some reasons i need to manully export data (not by using export listener) as excel file format, how this can be acheived?
do we need to use any java excel API's or is there any best way to do in ADF?
Any suggestions welcome....
Hi..
Yes,You can use Apache POI and
See
http://www.roseindia.net/tutorials/poi/ApachePoiCreateXlsx.shtmlIf you want to write excel to client machine do as follows
<af:fileDownloadActionListener> to get Outputstream for Excel
Check following ..
http://jdevadf.oracle.com/adf-richclient-demo/docs/tagdoc/af_fileDownloadActionListener.htmlhope this will helpful
Similar Messages
-
Loading 400 excel files without manually opening them???
Hi,
I have 400 excel files with the first 5 lines header info - nothing to do with the columns...15 merged columns
then the 15 and another 3 columns with data.
about half way down the file 12 over the columns turn into 6 columns (2 merged each)
Can I write a PL/SQL script to load these?? how would you tell when a column begins?
Again I don't want to open and SaveAs 400 files...
Thank you for your help, BillGood morning
I have problems with the Jakarta POI example. The problem is my home java environment
How can I configurate this java environment?
My java version is:
C:\Reporte\XL2ETB>java -version
java version "1.3.1_01"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_01)
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
And the error is:
C:\Reporte\XL2ETB>java -cp XL2ExternalTables.jar;jakarta-poi-1.5.1-final-2002061
5.jar;jakarta-poi-contrib-1.5.1-final-20020615.jar com.saternos.database.utiliti
es.ExternalTableGenerator new_department_data.xls
Begin processing.
Using working directory C:\Reporte\XL2ETB
Exception in thread "main" java.lang.NoSuchMethodError
at com.saternos.database.utilities.ExternalTable.<init>(ExternalTable.ja
va:62)
at com.saternos.database.utilities.ExternalTableGenerator.processWorkook
(ExternalTableGenerator.java:184)
at com.saternos.database.utilities.ExternalTableGenerator.execute(Extern
alTableGenerator.java:106)
at com.saternos.database.utilities.ExternalTableGenerator.main(ExternalT
ableGenerator.java:42)
Edited by: albrico on Oct 2, 2008 12:38 PM -
Opening an Excel File using Excel 97 from a JSP populated page(Urgent)
Hello,
I am using a JSP Page to populate data from the DB.
When I am opening the same as an Excel File the JSP code is coming as the Excel page whenever Excel 97 is being used,but when Excel2000 or 2003 is being used then the data are coming as Excel formatted.I used the following code(JSP) :
<head>
<%
response.setContentType("application/vnd.ms-excel");
response.setHeader("Content-Disposition","inline; filename=ExtractData.xls");
%>
</head>I can't even tell what the difference is between "coming as the Excel page" and "coming as Excel formatted". But then when people make urgent posts they very rarely spend the time to describe the problem accurately. Why bother when it's so damn urgent?
-
Import CSV data to an existing populated XLS file
Hi Guys,
Looking for some assistance, with some powershell I have never done before.. and don't know where to start..
I have a CSV file that contains some data - Several items exported from a standard powershell command.
I also have an XLS file that has been manually populated for the last 6 months with data.
What I want to get to (and have started with exporting the data to csv) is for the script to run, and add the data from the CSV to the XLS in the already exisiting colum heading.
SO in the first row - we need to add the date, followed by adding data under each subsequent column that already has a heading..
Anyone got any suggestions on where to start with this? Any advice greatly appreciated.
Thanks
Allan HardingI think your question is a bit too broad and vague.
If you are not a scripter then I recommend asking in the Exxcel forum. THey will help you learn how to use Excel tomerge data tables.
If you want to scrpt this then youneed to start by learning how to write a script. YOu will want to use Import-Csv and the Excel object model.
If this is critical then I recommend contacting a consultant.
http://technet.microsoft.com/en-us/scriptcenter/dd742419.aspx
¯\_(ツ)_/¯ -
.excel file takes lot of time to open after running Custom Program
DB:11.2.0.2.0
Oracle Apps:12.1.3
O/S:AIX 6.1
Hi All,
Issue Description:
When the report is submitted, the data gets populated into the table in less than 30secs and xml gets generated within a minute.
But the program takes some time in displaying the output around 5 mins but when we tried with html, it opens up quickly.
The template has a complex matrix, layout wherein, we are using nested FOR loops to display the data in the required format.
Yesterday, we ran the report “Custom GL STAT Trial Balance Report” in DEV Instance and for around 500+ records, it took around 5 mins.
The excel file is only 1 MB and xml generated is 245 KB
Moreover, recently we had increased the OPP jvm to 3GB to avoid java.lang.memory error what was occurring earlier.
select DEVELOPER_PARAMETERS
from FND_CP_SERVICES
where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES where
CONCURRENT_QUEUE_NAME = 'FNDCPOPP');
2 3 4
DEVELOPER_PARAMETERS
J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx3072m
Could this issue be due to JVM increase issue or something else?
How, could we monitor the jvm while the report is running to troubleshoot the issue?
Thanks for your time and help on this if anyone is willing to share such an experience faced before?
Regards,DB:11.2.0.2.0
Oracle Apps:12.1.3
O/S:AIX 6.1
Hi All,
Issue Description:
When the report is submitted, the data gets populated into the table in less than 30secs and xml gets generated within a minute.
But the program takes some time in displaying the output around 5 mins but when we tried with html, it opens up quickly.
The template has a complex matrix, layout wherein, we are using nested FOR loops to display the data in the required format.
Yesterday, we ran the report “Custom GL STAT Trial Balance Report” in DEV Instance and for around 500+ records, it took around 5 mins.
The excel file is only 1 MB and xml generated is 245 KB
Moreover, recently we had increased the OPP jvm to 3GB to avoid java.lang.memory error what was occurring earlier.
select DEVELOPER_PARAMETERS
from FND_CP_SERVICES
where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES where
CONCURRENT_QUEUE_NAME = 'FNDCPOPP');
2 3 4
DEVELOPER_PARAMETERS
J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx3072m
Could this issue be due to JVM increase issue or something else?
How, could we monitor the jvm while the report is running to troubleshoot the issue?
Thanks for your time and help on this if anyone is willing to share such an experience faced before?
Regards, -
Error reading excel file using POI.
Hi ,
I am having some problem when reading the excel file.
While reading excel file I am getting error-java.io.IOException: Unable to read entire block; 4 bytes read; expected 512 bytes.
part of my code:-
InputStream stream = objFormFile.getInputStream();
POIFSFileSystem fs = new POIFSFileSystem(stream);//getting above error here.
HSSFWorkbook wb = new HSSFWorkbook(fs);
Case 1:
I download the file on the system ,save it ,and then directly upload it to the system ,I get the above error .
Case 2:
It works fine if I download the excel and manually open and save it and then upload it .
I am using JDK1.4.1 and poi-2.5.1-final-20040804.jar.
Can any one please help me out for the above problem?
Edited by: hruday on Jul 31, 2008 3:20 AMInstead of using POIFSFileSystem, try to directly create the HSSFWorkbook
InputStream stream = objFormFile.getInputStream();
//POIFSFileSystem fs = new POIFSFileSystem( stream );//getting above error here.
HSSFWorkbook wb = new HSSFWorkbook( stream ); -
Hi All,
I need code of How to open and save excel file in local system in Oracle forms.
With Regards,
Chandra ShekharHello Chandra,
Webutil can be used to achieve this functionality.
STEPS TO FOLLOW
================
1. Install and configure Webutil following instructions in the webutil manual
and the readme file.
2. Create a form with a block Eg. DEPT
3. Create a button, and in that button put the following code -
DECLARE
application Client_OLE2.Obj_Type;
workbooks Client_OLE2.Obj_Type;
workbook Client_OLE2.Obj_Type;
worksheets Client_OLE2.Obj_Type;
worksheet Client_OLE2.Obj_Type;
args Client_OLE2.List_Type;
cell ole2.Obj_Type;
j INTEGER;
k INTEGER;
BEGIN
application := Client_OLE2.create_obj('Excel.Application');
workbooks := Client_OLE2.Get_Obj_Property(application, 'Workbooks');
workbook := Client_OLE2.Invoke_Obj(workbooks, 'Add');
worksheets := Client_OLE2.Get_Obj_Property(workbook, 'Worksheets');
worksheet := Client_OLE2.Invoke_Obj(worksheets, 'Add');
go_block('dept');
first_record;
j:=1;
k:=1;
while :system.last_record = 'FALSE'
loop
for k in 1..3 /* DEPT has 3 columns */
loop
If not name_in(:system.cursor_item) is NULL Then
args:=Client_OLE2.create_arglist;
Client_OLE2.add_arg(args, j);
Client_OLE2.add_arg(args, k);
cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
Client_OLE2.destroy_arglist(args);
Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
Client_OLE2.release_obj(cell);
End If;
next_item;
end loop;
j:=j+1;
next_record;
end loop;
/* For the last record */
for k in 1..3
loop
If not name_in(:system.cursor_item) is NULL Then
args:=Client_OLE2.create_arglist;
Client_OLE2.add_arg(args, j);
Client_OLE2.add_arg(args, k);
cell:=Client_OLE2.get_obj_property(worksheet, 'Cells', args);
Client_OLE2.destroy_arglist(args);
Client_OLE2.set_property(cell, 'Value', name_in(:system.cursor_item));
Client_OLE2.release_obj(cell);
End If;
next_item;
end loop;
Client_OLE2.Release_Obj(worksheet);
Client_OLE2.Release_Obj(worksheets);
/* Save the Excel file created */
args := Client_OLE2.Create_Arglist;
Client_OLE2.Add_Arg(args,'d:\test.xls');
Client_OLE2.Invoke(workbook, 'SaveAs', args);
Client_OLE2.Destroy_Arglist(args);
/* release workbook */
Client_OLE2.Release_Obj(workbook);
Client_OLE2.Release_Obj(workbooks);
/* Release application */
Client_OLE2.Invoke(application, 'Quit');
Client_OLE2.Release_Obj(application);
END;
4. Save the form and compile it.
5. Run the form.
6. Execute the query in the block.
7. Click on the button.
8. An excel file will be created in the d:\ directory by the name test.xls.
Kind regards,
Alex
If someone's answer is helpful or correct please mark it accordingly. -
How to download internal structure in Excel file ?
Hi,
In a ABAP 4.7 program, we need to download internal table/structures in a excel file. Automatically (as manually with breakpoint and Excel export button),
The SAP_CONVERT_TO_XLS_FORMAT doesn't work (empty file) certainly cause non STANDARD TABLE used.
There is various internal tables/structures, see one below
TYPES:
BEGIN OF gty_rup,
kunnr LIKE bsid-kunnr,
xref1 LIKE bsid-xref1,
xref3 LIKE bsid-xref3,
END OF gty_rup.
TYPES:
BEGIN OF gty_rup_tiers,
zztie LIKE bseg-zztie,
zzdat LIKE bseg-zzdat,
zzsea LIKE bseg-zzsea,
END OF gty_rup_tiers.
TYPES:
BEGIN OF gty_data_solde,
wrbtr LIKE bsid-wrbtr,
shkzg LIKE bsid-shkzg,
belnr LIKE bsid-belnr,
hkont LIKE bsid-hkont,
buzei LIKE bsid-buzei,
bldat LIKE bsid-bldat,
gjahr LIKE bsid-gjahr,
blart LIKE bsid-blart,
END OF gty_data_solde,
DATA:
BEGIN OF lt_prps OCCURS 0,
key_client TYPE gty_rup,
key_tiers TYPE gty_rup_tiers,
data TYPE gty_data_solde,
END OF lt_prps.
Does someone know function working with only the table/structure name as parameter ?
Thanks
Hervehere's what I did....I opened the xfile2.txt with Excel 2007 and stepped through the import wizard as a tab-delimited file. You're quite right it seems about the XLS function module.... I couldn't get a file downloaded that I could open with that thing. So I dropped it and just did the following:
TYPES: BEGIN OF gtypx.
INCLUDE TYPE gty_rup.
INCLUDE TYPE gty_rup_tiers.
INCLUDE TYPE gty_data_solde.
TYPES END OF gtypx.
DATA: lt_prps TYPE STANDARD TABLE OF gtypx WITH HEADER LINE.
START-OF-SELECTION.
lt_prps-kunnr = '1234'.
APPEND lt_prps.
LOOP AT lt_prps.
WRITE:/ lt_prps-kunnr.
ENDLOOP.
DATA: lv_filen type string value 'c:\xfile2.txt'.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
* BIN_FILESIZE =
filename = lv_filen
FILETYPE = 'ASC'
* APPEND = ' '
WRITE_FIELD_SEPARATOR = 'X'
* HEADER = '00'
* TRUNC_TRAILING_BLANKS = ' '
* WRITE_LF = 'X'
* COL_SELECT = ' '
* COL_SELECT_MASK = ' '
* DAT_MODE = ' '
* CONFIRM_OVERWRITE = ' '
* NO_AUTH_CHECK = ' '
* CODEPAGE = ' '
* IGNORE_CERR = ABAP_TRUE
* REPLACEMENT = '#'
* WRITE_BOM = ' '
* TRUNC_TRAILING_BLANKS_EOL = 'X'
* WK1_N_FORMAT = ' '
* WK1_N_SIZE = ' '
* WK1_T_FORMAT = ' '
* WK1_T_SIZE = ' '
* WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
* SHOW_TRANSFER_STATUS = ABAP_TRUE
* IMPORTING
* FILELENGTH =
tables
data_tab = lt_prps
* FIELDNAMES =
* EXCEPTIONS
* FILE_WRITE_ERROR = 1
* NO_BATCH = 2
* GUI_REFUSE_FILETRANSFER = 3
* INVALID_TYPE = 4
* NO_AUTHORITY = 5
* UNKNOWN_ERROR = 6
* HEADER_NOT_ALLOWED = 7
* SEPARATOR_NOT_ALLOWED = 8
* FILESIZE_NOT_ALLOWED = 9
* HEADER_TOO_LONG = 10
* DP_ERROR_CREATE = 11
* DP_ERROR_SEND = 12
* DP_ERROR_WRITE = 13
* UNKNOWN_DP_ERROR = 14
* ACCESS_DENIED = 15
* DP_OUT_OF_MEMORY = 16
* DISK_FULL = 17
* DP_TIMEOUT = 18
* FILE_NOT_FOUND = 19
* DATAPROVIDER_EXCEPTION = 20
* CONTROL_FLUSH_ERROR = 21
* OTHERS = 22
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
Error when trying to convert excel files to pdf
I'm getting the following error when trying to convert .xls and .xlsx files to pdf, using the "Create PDF" option:
Error message from the primary converter:
ALC-PDG-010-012-PDFMaker reported an error while printing the document.
Word, Powerpoint and Text files convert without any issues. Also I'm able to opent the excel files and convert them to pdf using the acrobat option in excel.
Livecycle Version: 10.0.2, GM
MS Office Version: 2007
Any help would be appreciated. Thanks in advance.
Regards,
Suhail N.It is always difficult when you need to convert multiple xls files to pdf or multiple sheets to pdf. If you have a single file to convert then the best method would be to copy your data to doc file and then convert it into PDF . If you have multiple files to convert then it is really difficult to convert all the files manually. Then the better method would be to use converter tool to convert excel to pdf . By doing this you can convert many files in just few seconds.
-
Save and Close excel file opened through OLE
Hi,
I have opened an excel file on my desktop and edited it.Now I have to save this file and close it.
Right now , I am manually saving the file and closing it. So please give the steps to automate the process of saving and closing .
Please find the code below for opening a file and editing.
report zkntest2.
INCLUDE: <line>,
<icon>,
<symbol>,
ole2incl.
DATA: g_excel_app TYPE ole2_object,
g_excel_workbook TYPE ole2_object,
g_excel_worksheet TYPE ole2_object,
g_excel_usedrange TYPE ole2_object,
g_excel_cell TYPE ole2_object,
g_excel_return TYPE ole2_object.
data :H_MAPL TYPE OLE2_OBJECT, " list of workbooks
H_MAP TYPE OLE2_OBJECT, " workbook
H_ZL TYPE OLE2_OBJECT, " cell
H_F TYPE OLE2_OBJECT. " font
CONSTANTS:c_appl(17) TYPE c VALUE 'Excel.Application'.
SELECTION-SCREEN BEGIN OF BLOCK blk1 with frame title text-001.
PARAMETERS p_ofile LIKE rlgrap-filename default 'C:\layout.xls'.
SELECTION-SCREEN END OF BLOCK blk1.
CREATE OBJECT g_excel_app c_appl.
CALL METHOD OF g_excel_app 'Workbooks' = g_excel_workbook.
CALL METHOD OF g_excel_workbook 'Open'
EXPORTING #1 = p_ofile.
SET PROPERTY OF g_excel_app 'Visible' = 1.
CALL METHOD OF g_excel_app 'Workbooks' = H_MAPL.
PERFORM FILL_CELL USING 4 9 1 'Kiran'(001).
PERFORM FILL_CELL USING 5 9 1 'Ref#'(002).
PERFORM FILL_CELL USING 6 9 1 'Claim#'(003).
PERFORM FILL_CELL USING 7 9 1 'Location'(004).
FREE OBJECT g_excel_app.
FORM FILL_CELL USING I J BOLD VAL.
CALL METHOD OF g_excel_app 'Cells' = H_ZL EXPORTING #1 = I #2 = J.
SET PROPERTY OF H_ZL 'Value' = VAL .
GET PROPERTY OF H_ZL 'Font' = H_F.
SET PROPERTY OF H_F 'Bold' = BOLD .
ENDFORM. "FILL_CELLTry add this code below.
CALL METHOD OF G_EXCEL_APP 'ActiveWorkbook' = G_EXCEL_WORKBOOK.
CALL METHOD OF G_EXCEL_WORKBOOK 'SaveAs' EXPORTING #1 = '1.xls'.
CALL METHOD OF G_EXCEL_WORKBOOK 'Close'.
CALL METHOD OF G_EXCEL_APP 'Quit'.
FREE G_EXCEL_APP. -
How do I merge multiple Excel files with more than one tab in each file using PowerQuery?
Hello
I have 12 Excel (.xlsx) files and each file has three identically named and ordered tabs in them.
I know how to merge multiple Excel files in a folder using M (those guides are all over the web) but how do I merge multiple Excel files with multiple (yet identically named and ordered) tabs? Surely it is possible? I just don't know how to do it in M.
Cheers
JamesWhat Laurence says is correct, and probably the best thing to do when the sheets have differing structures. Here is an alternate approach that works well when the sheets all have the same structure.
When you first open the Excel file from Power Query, you can see its structure in the navigator at the right-hand-side of the screen. If you select the root (which is the filename itself) and click Edit, you'll see all the tabs in the sheet as a single table.
You can now do filtering based on the Name, Item and Kind values. When you've reduced the set of things down to the sheets you want, select the Data column and say "Remove Other Columns". If the sheets don't have any header rows, you can just click the expand
icon in the header and you'll be done.
Otherwise, if the sheets have headers or if some other kind of sheet-level transformation is required against each sheet before doing a merge, you'll have to write some M code manually. In the following example, each sheet has a header row consisting of
two columns: Foo and Bar. So the only step I need to perform before merging is to promote the first row into a header. This is done via the Table.TransformColumns operation.
let
Source = Excel.Workbook(File.Contents("C:\Users\CurtH\Desktop\Test1.xlsx")),
RemovedOtherColumns = Table.SelectColumns(Source,{"Data"}),
PromotedHeaders = Table.TransformColumns(RemovedOtherColumns,{{"Data", each Table.PromoteHeaders(_)}}),
ExpandData = Table.ExpandTableColumn(PromotedHeaders, "Data", {"Foo", "Bar"}, {"Data.Foo", "Data.Bar"})
in
ExpandData -
How to open a excel file in WLS 8.1 server.
Dear Sir,
I have created a excel file in WLS 8.1 Application server.
Now I used method as redirectURL(req,resp,Population.xls) to open that file but it failed to open it.
If I give the full path as 'D://USER_OBJETS/APPLICATION/Population.xls'
but it tried to open from client PC not from the server.
so the problem, I managed to create file in server but unable to open it.
Kindly advise how to resolve this problem.
Thanks and Rgds,
Anandan-Singapore.Are you asking in general how to read an Excel file using ActiveX, or are you asking specifically? If you're asking in general, please do a search, as there have been many examples posted on how to use ActiveX to read/write Excel files. There are also numerous links in the Excel thread.
-
I am fairly new to Macro and VBA in Excel. I am trying to reduce the amount of work involved in a task that is performed often in our office. Currently, the task involves using 2 separate Excel files. One file is a tracking sheet and the second is the document
that gets sent out to the client. The second document has all the same information that is inserted into the tracking sheet. What I would like to do is have the information that is in one row on the tracking sheet populate into a new excel file that is created
automatically from an existing template.
I have been able to make this partially work. What I have been able to achieve is have the cell that is selected in the tracking sheet (the description field) copy into the new file that is created from the template that is on our server.
Sub NewRFI()
' NewRFI Macro
MsgBox Selection.Address(ReferenceStyle:=xlA1, _
RowAbsolute:=False, ColumnAbsolute:=False)
Selection.Copy
Workbooks.Add Template:= _
"template file path goes here"
Range("C14").Select
Selection.PasteSpecial Paste:=xlPasteValues, Operation:=xlNone, SkipBlanks:= _
False, Transpose:=False
Range("C14").Select
Application.CutCopyMode = False
End Sub
What I need to do is get the rest of the information from that same row in the tracking sheet to copy to the new file as well. The other information includes the document number (one cell to the left of the selected cell), who it is from (one cell to the
right of the selected cell), and the date (two cells to the right of the selected cell). As stated, this information is all in the same row on the tracking sheet. Each piece of information needs to be copied to a certain cell in the new file and I do not want
the source formatting to be copied to the new file.
Ideally, I would like it to operate like so: select the first cell in the row (in this case would be the document number field). Then click a button to run the macro that will then copy the information from that row in the tracking sheet to specific cells
in the new file that is created from the template.
This process will save us from having to either manually copy and paste the information into the new file or re-type the same information that is already in the tracking sheet.
This is probably a simple thing to do but it would be great if anybody had some insight on this issue. Thanks in advance!Try code like the following. You will have to change the target cells (D25, F1 and H4) to the ones you want, I just used some arbitrary cells as example.
Sub NewRFI()
Dim rngCell As Range
Set rngCell = ActiveCell
MsgBox Selection.Address(ReferenceStyle:=xlA1, _
RowAbsolute:=False, ColumnAbsolute:=False)
Workbooks.Add Template:="template file path goes here"
Range("C14").Value = rngCell.Value
' Change the target cells as needed
Range("D25").Value = rngCell.Offset(0, -1).Value
Range("F1").Value = rngCell.Offset(0, 1).Value
Range("H4").Value = rngCell.Offset(0, 2).Value
End Sub
Regards, Hans Vogelaar (http://www.eileenslounge.com) -
How do I open a password protected excel file created on a PC in numbers 09, on a MacBook Air? I get a message that the "file is encrypted and can't be opened"
This is actually not true; I support users who are doing this w/ Excel 2011 (v14.2.2+) for Mac and Windows users w/ Excel 2003 & 2007. Win users are from finance dept, and who have pasword-protected various budget files. The Mac users are (surprise) "creative" users, who enter pw to unlock and edit these budget files.
These files are shared from a Mac server (running 10.6.8 server), and I do have an erratic problem where all users have read-only access to these pw-protected Excel files. The manual work-around has been to copy the troublesome file(s) and confirm users have full access again. I also do a shuffling of filenames, so that the new, working file has original file name.
FYI: the Mac server POSIX and ACL permissions are correct, and don't appear to be source of the problem.
It's easy an SMB file-locking issue or concurrent users trying to edit these files. I keep reminding them that Excel is not a database! -
Upload an excel file to update a table
Hi All
I have a requirement in which, user uploads a simple excel file with some records (columns in excel in a pre-specified format similar to a database table) and all those have to insert into a table in a database.
I've gone thru some documentation on Oracle ADF DI, and itseems to me that a simple excel file upload feature is not part of that. ADF DI basically has support to advanced features, and includes having a plug-in for excel, configuring excel workbook, etc.
My req is uploading a simple excel.
One solution i found, is to use af:inputfile, and read the excel in a java file(Backing Bean/Managed Bean - I always gets confused b/w these two :-) ) using POI, and manually update it to DB using a VO.
Is there any better solution for this.
Thanks in advance, Regards,
Ravi.Yes thats how you its done . You can follow this blog for the solution - http://technology.amis.nl/blog/8418/adf-11g-import-from-excel-into-an-adf-table
Btw backing bean will generally have bindings to all components on a page and Managed bean has bindings to specific ones - thats a prime difference between the two .
Maybe you are looking for
-
I want to install Windows 7 on my band new Macbook Pro 13 inch and use Parallel Desktop 6 torun it alongside my Mac OS. Do I need to buy a specific Mac version of Windows 7 or do I install a standard Windows 7 OS on the Mac using boot camp.
-
Hi, Am pretty confused between use of Solution Manager and DMS.Can they be used interchageably? What are the differences
-
How to implement User Exit in APO?
Hello All, I am not sure how to use user exits. I was wondering if anyone can help me understand how to implement any user exit? Is there any T.Code where you do that? or ABAP coding is required? Also how different is BAdi from User exits? Any advice
-
Importing Lotus Notes .NSF files into iPhone
Does anyone know how to import LN .NSF files into the iPhone?
-
How can I create a chain process with rscrm_bapi
Hello We have generated a table, as result of the execution of a query with the transaction rscrm_bapi. It's made manually, and now we want to do it in a chain process so that the table will be generated automatically. How can I do this?. A