I want to import microsoft excel file into ebase.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

Pankaj Yergude
Ebase User
Posts: 10
Joined: Tue Jun 02, 2009 7:33 am

I want to import microsoft excel file into ebase.

#1

Postby Pankaj Yergude » Fri Jun 05, 2009 6:40 am

Hi,
I want to import microsoft excel file into ebase.Please let me know how can i implements in ebase.

Regards,
Pankaj
0 x

User avatar
Joost
Ebase User
Posts: 49
Joined: Fri Sep 14, 2007 6:14 pm
Location: The Netherlands

#2

Postby Joost » Fri Jun 05, 2009 7:55 am

Depends on when and where you want to do something with the data, but you could use:
  • - a sql import script to periodically load the data into a table;
    - Apache POI to work with the Excel format in combination with a servlet, jsp or custom function/resource;
    - first export from Excel to XML and use the XML import resource.
0 x

Pankaj Yergude
Ebase User
Posts: 10
Joined: Tue Jun 02, 2009 7:33 am

#3

Postby Pankaj Yergude » Fri Jun 05, 2009 9:09 am

Hi,
Thanks for your help can u tell me in brief description, In my project form i have one filed to import excel file and excel data stored in my project database having same field, Please let me know.

Regards,
Pankaj
0 x

AJDulk
Ebase User
Posts: 94
Joined: Fri Sep 14, 2007 12:18 pm
Location: The Netherlands
Contact:

Re: I want to import microsoft excel file into Ebase.

#4

Postby AJDulk » Fri Jun 05, 2009 12:34 pm

In order to help more information is needed:
  • - What is your chosen solution? (SQL import, Apache POI, Export to XML and import the XML)
If SQL import then we need to know:
  • - What infrastructure are you using for your database tier (Oracle, Microsoft SQL, Derby, ...)
Also helpful would be what you have actually tried and the problems you came across trying them.

Regards,
Antony[/list]
0 x

Pankaj Yergude
Ebase User
Posts: 10
Joined: Tue Jun 02, 2009 7:33 am

RE:

#5

Postby Pankaj Yergude » Fri Jun 05, 2009 1:42 pm

Hi,

I chosen Export to XML and i am facing problem in first export from Excel to XML. I used Mysql database.

I created sample page in that one field is their and when i click on the button then browse the client excel sheet those client excel sheet data i want how to store on my database, but my problems is i have don't have any idea about how to browse the client excel sheet and stored into database table client data.

Regards,
Pankaj
0 x

User avatar
Joost
Ebase User
Posts: 49
Joined: Fri Sep 14, 2007 6:14 pm
Location: The Netherlands

Re: RE:

#6

Postby Joost » Mon Jun 08, 2009 8:01 am

Pankaj Yergude wrote:I chosen Export to XML and i am facing problem in first export from Excel to XML.
MS Excel has a "save as" option. Select XML and hit save?

You may now use the XML file with a XML File adapter.
http://portal.ebasetech.com/cp/doc/xmlr ... c178151740
how to browse the client excel sheet
If you mean the data in the XML file you have to map the XML to a table field.
http://portal.ebasetech.com/cp/doc/field_mappings.htm

If you mean to browse files in a folder you need to do a directory listing using the osfiles function.
http://portal.ebasetech.com/cp/doc/scri ... c193607007
and stored into database table client data.
Map the table to a database as well and store the selected rows.

But maybe Apache POI would be more suited to your situation. It is more work, but hence more flexible too.
0 x

Pankaj Yergude
Ebase User
Posts: 10
Joined: Tue Jun 02, 2009 7:33 am

#7

Postby Pankaj Yergude » Mon Jun 08, 2009 8:50 am

Hi,
Thanks for your help Can u please tell me How can i use Apache POI in my application, please give a brief description.

Regards,
Pankaj
0 x

ehmd
Ebase User
Posts: 53
Joined: Thu Sep 13, 2007 9:02 am
Contact:

#8

Postby ehmd » Mon Jun 08, 2009 10:12 am

Pankaj Yergude wrote:Hi,
Thanks for your help Can u please tell me How can i use Apache POI in my application, please give a brief description.

Regards,
Pankaj
You will probably need to write your own Custom Resource in java to be able to access the Excel Spreadsheet.

Custom Resource information in Ebase is available at http://portal.ebasetech.com/cp/doc/Work ... ources.htm

Apache POI libraries are available at http://poi.apache.org/spreadsheet/index.html


Regards,


Mark
0 x

User avatar
Wai
Moderator
Moderator
Posts: 165
Joined: Wed Sep 12, 2007 9:04 am
Location: Sandy, UK
Contact:

#9

Postby Wai » Wed Jun 10, 2009 3:16 pm

Are you still looking for a solution to this?

We have a custom resource that will read and write from a CSV file. You can save your Excel file as CSV and read this into an Ebase table.

Let me know if this is useful to you.
0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

#10

Postby t4nu » Mon Sep 05, 2016 10:36 am

Hi,
Is this custom resource can be used by other user of ebase of just certain user who has fulfill the criteria?
Id just that has fulfill the criteria, may I know what the criteria is?
Thanks for the answer.
Wai wrote:Are you still looking for a solution to this?

We have a custom resource that will read and write from a CSV file. You can save your Excel file as CSV and read this into an Ebase table.

Let me know if this is useful to you.
0 x

AJDulk
Ebase User
Posts: 94
Joined: Fri Sep 14, 2007 12:18 pm
Location: The Netherlands
Contact:

Re: I want to import microsoft excel file into ebase.

#11

Postby AJDulk » Mon Sep 05, 2016 11:23 am

0 x

t4nu
Ebase User
Posts: 305
Joined: Thu Jul 02, 2015 8:32 am
Location: Indonesia

Re: I want to import microsoft excel file into ebase.

#12

Postby t4nu » Tue Sep 06, 2016 9:18 am

Thank you very much for the info.
It really help me a lot, especially the 3rd link.
0 x


Who is online

Users browsing this forum: No registered users and 24 guests