mariodavid / cuba-component-data-import

CUBA component for easy data import
Apache License 2.0
20 stars 15 forks source link

Issue with number fields #161

Open devgiu opened 3 years ago

devgiu commented 3 years ago

Hi,

I'm creating import configurations, for files with this kind of structure. '282','187887','Elite','2013','1463946785','0','1'

String fields works when I create a custom atribute and use return rawValue.replace("'","") to save the string correctly. But doesn't matters what I do or try, numbers are not saved into database.

¿Some idea?

mariodavid commented 3 years ago

Hi,

I'm not sure what in particular does not work in your case. Perhaps you can create a small demo project with the import configuration (exported from the entity inspector) as well as the file to import. Usually, this is needed in order to help in a particular configuration scenario.

Generally speaking: importing numbers is no problem and works just fine.

Here is a sample app that shows various examples (including integers): https://github.com/mariodavid/cuba-example-using-data-import

Bye Mario