GithubHelp home page GithubHelp logo

ako / csvservices Goto Github PK

View Code? Open in Web Editor NEW
4.0 4.0 6.0 82.84 MB

Csv Services module for Mendix apps

License: Apache License 2.0

Java 23.99% R 0.04% PowerShell 0.12% CSS 28.77% HTML 0.36% Shell 0.09% Batchfile 0.45% SCSS 36.04% JavaScript 10.14%

csvservices's People

Contributors

ako avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

csvservices's Issues

Exception if owner or changedBy stored for entity

I am seeing the following exception in Mendix 7.22.2 and using CsvServices 2.1 if an entity has the owner and changedBy system attributes:

java.util.IllegalFormatConversionException: g != com.mendix.basis.objectmanagement.MendixIdentifier
at java.util.Formatter$FormatSpecifier.failConversion(Formatter.java:4302)
at java.util.Formatter$FormatSpecifier.printFloat(Formatter.java:2806)
at java.util.Formatter$FormatSpecifier.print(Formatter.java:2753)
at java.util.Formatter.format(Formatter.java:2520)
at java.util.Formatter.format(Formatter.java:2455)
at java.lang.String.format(String.java:2940)
at csvservices.impl.CsvExporter.writeAttributeValue(CsvExporter.java:126)
at csvservices.impl.CsvExporter.entityToCsv(CsvExporter.java:79)
at csvservices.impl.CsvRestHandler.processRequest(CsvRestHandler.java:82)
at com.mendix.externalinterface.connector.RequestHandler.doProcessRequest(RequestHandler.java:40)
at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:72)
at com.mendix.external.connector.MxRuntimeConnector$1.execute(MxRuntimeConnector.java:69)
at com.mendix.util.classloading.Runner.doRunUsingClassLoaderOf(Runner.java:32)
at com.mendix.external.connector.MxRuntimeConnector.processRequest(MxRuntimeConnector.java:75)
at com.mendix.basis.impl.MxRuntimeImpl.processRequest(MxRuntimeImpl.java:872)
at com.mendix.m2ee.appcontainer.server.handler.RuntimeHandler.service(RuntimeHandler.java:42)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:867)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:542)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1588)
at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:255)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1345)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:203)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:480)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1557)
at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:201)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1247)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:144)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:132)
at org.eclipse.jetty.server.Server.handle(Server.java:502)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:364)
at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:260)
at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:305)
at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:118)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:333)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:310)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:168)
at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:126)
at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:366)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:765)
at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:683)
at java.lang.Thread.run(Thread.java:748)

Appstore Versions Out Of Sync

Andrej,

I have just tried to download CSV services version 2.0.1 and 2.0 into an app that is in Mendix version 6.10.9 and I get the following error message:

image

Is there an up to date version that is available for Mendix 6.10.x?
Thanks,
Mike

Parsing decimal value into integer field gives warning but should give error

When a decimal value from a CSV (we accidentally had 0.00) is uploaded into an integer field the module only gives one warning stating the attribute can't be set. Even though I like the fact that it only gives one message, because it is the same for all rows, it really should be an error or even an exception as the code is bound to break after that, as it did in our case.

csvServices version 1.1 Post issue with Mendix System attributes 'changedDate', 'createdDate'

Hello,

Absolutely love your csvService app.

I am having problem, importing in csv data into my Mendix application, using csvServices version 1.1 whenever my entity has a ‘changedDate’.

My entity has a ‘changedDate’ attribute (it is a system member). When I run a Post that reads in a csv input file with just 1 row of data and inserts it into my Entity in Mendix, I got the error of “write access denied for member ‘changedDate’ since it is a system attribute.

I tried not including the changedDate column and data in my csv input file but getting nullpointerException since it expects the column and data to be in the input file.

The input record will not insert because of this error.

  1. Is there any way around this?
  2. Does your latest version of csvServices have a work-around for this?

failed to create object: Write access denied for member 'changedDate'failed to create object: Write access denied for member 'changedDate'

Thanks.

Hoang

Core.getConfiguration().getDTAPMode() was removed in Mendix 6.0.0

This leads to an issue in the action: CsvServices/javasource/csvservices/actions/CsvExportInitializeAction.java

boolean isSandbox = Core.getConfiguration().getApplicationRootUrl().contains(".mendixcloud.com") && "DEVELOPMENT".equalsIgnoreCase(Core.getConfiguration().getDTAPMode().toString()); isSandbox = true; if (isSandbox) {

Should probably be replaced with a Constant.

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.