Giter Club home page Giter Club logo

csv-connector's People

Contributors

arjenlammers avatar

Watchers

 avatar  avatar

csv-connector's Issues

The default quote character is not "

Hi Arjen,

First of all great module with a nice performance.
While implementing I noticed that the description of "ImportCSV" java action is out of date.
The library default quote and escape character in the description do not match the implementation.

My suggestion would be to use the NO_QUOTE_CHARACTER/NO_ESCAPE_CHARACTER, such that this matches passing 'empty' as an argument in the java action.

Kind regards,

Nils

.withQuoteChar(this.quoteCharacter == null ? CSVWriter.NO_QUOTE_CHARACTER : this.quoteCharacter.charAt(0))

App not able to compile after installing

Mx Version: 8.18.14

After installing the module from the app store, I'm seeing the following Java compile errors:
Buildfile: C:\Users\Jounior.Phomma{Application Name}\deployment\build_core.xml

compile:
[javac] Compiling 14 source files to C:\Users\Jounior.Phomma{Application Name}\deployment\run\bin
[javac] C:\Users\Jounior.Phomma{Application Name}\javasource\csv\actions\ExportOQLToCSV.java:35: error: package oql.implementation does not exist
[javac] import oql.implementation.OQL;
[javac] ^
[javac] 1 error

BUILD FAILED
C:\Users\Jounior.Phomma{Application Name}\deployment\build_core.xml:29: Compile failed; see the compiler error output for details.

Total time: 3 seconds

If I remove the module my app loads fine.

Export Action should accept encoding specifications.

I think Export Actions should accept encoding specifications. for now, they cannot be used in encodings other than the default encoding.
And that is actually big problem here Asia, because there is not only one encoding but some encodings in some Asian each countries.
My idea is to add charsetName(encodingName) string parameter to Export action and use it for constructor of FileOutputStream class.
As Is: 'CSVWriter writer = new CSVWriter(new FileWriter(tmpFile), '
To Be: 'CSVWriter writer = new CSVWriter(new BufferedWriter(new OutputStreamWriter(new FileOutputStream(tmpFile), charsetName)),
'
For compatibility, it's a good idea to add a new Action like ExportCSVwithCharset.

Compilation error

I get a compilation error in 9.9.1

\javasource\csv\actions\ExportOQLToCSV.java:35: error: package oql.implementation does not exist [javac] import oql.implementation.OQL; [javac] ^ [javac] ...\javasource\csv\actions\ExportOQLToCSV.java:143: error: cannot find symbol [javac] OQL.resetParameters(); [javac] ^

[Feature request] Enabling Export(OQL/SQL)ToCSV to Specify the Date Format.

Currently, attribute of type Datetime are output as numerical timestamps in ExportOQLToCSV and ExportSQLToCSV.
In most cases, the time is displayed as a formatted string rather than a number.
The format also depends on the country where it is used.

I think this is a good thing for the convenience.

read line removes backslashes

I wanted to use the CSV module to import regular expressions, but the read next line action removes all backslashes from the values.

The values are unquoted in my csv file, e.g.
BE;Belgium;^\d{4}$;1234

in the result, the third column is imported as ^d{4}$ which alters the regex expression.

Feature suggestion

Hi

We are wondering if adding a date format for date fields on export would be good idea going forward. Think currently timestamps get outputted

We could work on a pull request if that is something that would be helpful so you could pass a date format to java actions for exporting CSV's

S

Module doesn't work anymore with Mendix Version 9.24.11

Hi,

the module worked perfectly fine up until my upgrade from Mendix 9.18.4 to 9.24.11. I already upgraded the CSV and the OQL Module to the latest releases, but it still shows me following error:
com.mendix.webui.WebUIException: Attempt to illegally add an object to the state with id '50665495808084976'
at com.mendix.webui.requesthandling.helpers.StateHandling.$anonfun$addObjectsToState$1(StateHandling.scala:133)

Could you please advise?

Cheers
Fulya

SAST Finding

Hello,

I wanted to reach out regarding a finding in SonarQube for this project to help determine if this is an actual finding or a false positive. Normally, I would reach out to Mendix Support but this is a Community supported module. Is there a specific way you'd like me to relay the finding for further discussion?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.