You need to sign in to do that
Don't have an account?
raju123
How to Handle LineBreaks and commas in CSV file while Importing through visualforce
Hi,
I am trying to import data through CSV from visualforce page. Its working well. But when CSV file contains Iine breaks in one Field then i can't able to handle it. Getting error as System.ListException: List index out of bounds: 6
Even Iam getting Problem with comma in any of the field
Please can one help me on this
Thanks
can u share a code it will be more help full
Hi,
Try surrounding each entry with "s so you have
"abc","def","ghi"
ok
hear what i try in systemlog & it's working
String temp = '"abc","def","ghi"';
system.debug('$$$$$$$$$$$$$$$$$'+temp.replace('\'','')); repalce '
system.debug('$$$$$$$$$$$$$$$$$'+temp.replace('"','')); // repalce "