on 10-24-2008 5:55 AM
Hi All,
We are using the File as a sender. Here file is excel sheet and the data is in multiple sheets. How Can we read the data from multiple sheets and send to XI?
Regards
Sridhar Goli
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nilesh,
Thank you for your reply,
Here my requirement is Excel file is having multiple sheets with different infotypes of HR module.
We want to read each sheet and generate one file for each sheet and place in different folders.
Is this possible to create one file for each sheet of the Excel file?
Please provide any inputs on this.
any help appriciated.
Regards
Goli Sridhar
Hi Sridhar,
Yes. Abs it is possible. As I said earlier I did a java module to read a excel file with multiple sheets. I do have copde for same. However I do not have a specific code for writing / creating xls file again. But I'm sure you will find this on web.
Let me know if you need more details.
Nilesh
Hi Nilesh,
Thax for your valuable inputs on this.
I need the code to read the data from multiple sheets in Excel workbook.
I am having small query on this, Here we have to generate the one file for each work sheet of the Excel Work book in the target folder.
And also whether we need any mapping like Java Mapping required in the Integration repository to create the target file name based on the Worksheet name from the Excel workbook.
Your help would be appriciated.
Regards
Goli Sridhar
One way to do this is to use the jxl api in your module/code. Use the getSheet() method to read multiple sheets.
You can refer the api here: http://jexcelapi.sourceforge.net/resources/javadocs/current/docs/overview-summary.html
Thanks
Chandra
HI Sridhar
You can use the code given in Naga's blog
Read the files using that and add an id to it under the Tokenizer method for each sheet. Use java mapping to create target based on that id. You can generate data from xi separately for each sheet.
Even using graphical mapping also it will work but that bit tricky.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.