Importing CSV or Excel into TiNG

Find out how to get things done with Servoy. Post how YOU get things done with Servoy

Importing CSV or Excel into TiNG

Postby bevil » Wed Jan 17, 2024 6:34 pm

Hi all

In the good old days, an import of a text file was done with File > Import > From Text File or From Excel

Is there a TiNG version of this or do we have to write the whole thing ourselves? Perhaps there is a module we can import or that someone has ?

Thanks for any help.

:)

Bevil
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm

Re: Importing CSV or Excel into TiNG

Postby mboegem » Wed Jan 17, 2024 6:55 pm

Hi Bevil,

you can use the svyExcelUtils for this, which is part of the svyUtils module.
You can install that using the Servoy Package Manager.

You will also need the Jasper Reports plugins as well as additional POI library.
This is all described here: https://github.com/Servoy/svyUtils/wiki/ExcelUtils

Hope this helps
Marc Boegem
Solutiative / JBS Group, Partner
Servoy Specialist
• Servoy Certified Developer
• Servoy Valued Professional
• Freelance Developer

Image
User avatar
mboegem
 
Posts: 1817
Joined: Sun Oct 14, 2007 1:34 pm
Location: Amsterdam

Re: Importing CSV or Excel into TiNG

Postby bevil » Fri Feb 02, 2024 5:03 pm

Thank you Marc.

We are trying to implement this but struggling (actually, we already have the csv in an array, our problem is getting it to match up with a data grid so that we can create a button to 'import' to the table.)

You wouldn't happen to have any code to do this lying about would you?

When is ServoyCamp on the Corfu Beach happening again ?

Hope all's well.

Best

Bevil
bevil
 
Posts: 163
Joined: Thu Oct 18, 2012 7:31 pm


Return to How To

Who is online

Users browsing this forum: No registered users and 1 guest