Quantcast
Channel: Microsoft Dynamics AX Forum - Recent Threads
Viewing all articles
Browse latest Browse all 73760

Doing excel upload but one integer field is getting always 0.

$
0
0

Hi All,

duration = cells.item(row, 4).value().int();

variable duration is getting always 0 value instead of the whole number.

Can you please help me in this?

workbook = workbooks.item(1);
    worksheets = workbook.worksheets();
    worksheet = worksheets.itemFromNum(1);
    cells = worksheet.cells();
    do
    {
        row++;
        id = cells.item(row, 1).value().bStr();
        name = cells.item(row, 2).value().bStr();
        description = cells.item(row, 3).value().bStr();
        duration = cells.item(row, 4).value().float();
        url = cells.item(row, 5).value().bStr();

 

        certification_Name.CertificationId = id;
        certification_Name.Name = name;
        certification_Name.Description = description;
        certification_Name.Duration = duration;
        certification_Name.URL = url;

 


        //if(HcmWorker::findByPersonnelNumber(lECN))
            certification_Name.insert();
        type = cells.item(row+1, 1).value().variantType();
    }

Thanks and regards

Siddhant Singh


Viewing all articles
Browse latest Browse all 73760

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>