Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Upload From Excel .. Handle null value in an Excel cell

user10873676Mar 8 2017 — edited Mar 9 2017

Hi,

I am doing upload from Excel to af:table and then commiting to DB.

I have followed this blog .   Import data from XLS and XLSX (Excel) to ADF Table Using Apache POI – Ashish Awasthi's Blog (Jdev/ADF)

If all the cell values in the excel are not null then there is no problem in loading the data.

When I encounter a null value then as per the code in the method  readNProcessExcelx  of the blog

else if (Index == 1) {

  row.setAttribute("FirstName", MytempCell.getStringCellValue());

it is erroring out and not going to the next index cell value. And the data that is uploaded into different attributes does not match with the excel data.

how can we set a null value to an attribute whose cell value in excel is null ?

Thanks,

Vinay.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 6 2017
Added on Mar 8 2017
10 comments
1,343 views