Giter Site home page Giter Site logo

Comments (7)

mariodavid avatar mariodavid commented on May 23, 2024

Hi,

Thanks for reaching out.
Can you share some input values? Which values would you wanted to get parsed. Whats about deliminators etc?

Bye
Mario

from cuba-component-data-import.

nonpluseternal avatar nonpluseternal commented on May 23, 2024

For testing I used a simple csv file, importing to an entity with a string Name and BigDecimal Num(non-mandatory field. If I made the field mandatory it threw an exception related to AttributeBinder)

example.csv
Name,Num
Test,14

I expected it to import both values. What actually happened was, it did not show success, it imported the string Name correctly and left "Num" (BigDecimal) blank.

from cuba-component-data-import.

mariodavid avatar mariodavid commented on May 23, 2024

Right, bigdecimal is not supported as you said.

I was just thinking about that about:
12.3
1,456,900.758813

As well as situations where you have localisations in place (e.g in DE it would be 1.987.654,65008)

I thought you have some additional edge cases for me :)

from cuba-component-data-import.

mariodavid avatar mariodavid commented on May 23, 2024

btw:
there is always the escape path in case the app component does not have support for specific datatypes to bind: Custom attribute binding script.

Something like this should do the trick:

return new BigDecimal(rawValue)

But I will plan native support for BigDecimal somewhere 0.3.0 / 0.4.0.

from cuba-component-data-import.

nonpluseternal avatar nonpluseternal commented on May 23, 2024

Excellent - thank you!

from cuba-component-data-import.

mariodavid avatar mariodavid commented on May 23, 2024

we can actually leave it open, so that I can use it to keep track of the actual implementation.

from cuba-component-data-import.

mariodavid avatar mariodavid commented on May 23, 2024

done in #62. Will be released in 0.3.0. Thanks for pointing it out.

from cuba-component-data-import.

Related Issues (20)

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.