Uploading an excel file using webutil in AIX [message #582413] |
Thu, 18 April 2013 04:27 |
|
sankalputtara
Messages: 53 Registered: January 2011 Location: Bangalore
|
Member |
|
|
Hi,
When i am uploading data in an excel file to my Forms(Windows) the screen works fine but when i am uploading the same excel file to my forms in AIX(Where the application is running) the data is uploaded with decimal points
The field is a char type and no format mask is set.
Eg:
Actual data: In Form(Windows) In Form (AIX)
4080026 4080026 4080026.0
Can anyone please help me understand why this could be happening.
|
|
|
|
|
|
Re: Uploading an excel file using webutil in AIX [message #582423 is a reply to message #582421] |
Thu, 18 April 2013 05:14 |
|
sankalputtara
Messages: 53 Registered: January 2011 Location: Bangalore
|
Member |
|
|
I have attached a word document in which you can see two screenshots(One AIX, One Windows)
I had linked two images and that why i said PFA(Please find attached) anyways..
I understood that you wanted me to show that faulty data is getting inserted into the table, and you wanted me to show that using a select statement. But my issue is not with respect to the data that is getting inserted but the data that is displayed on the screen. If you see the screen shots i think you will get clarity about what i am trying to explain.
Thanks & Regards,
Sankalp
[Updated on: Thu, 18 April 2013 05:19] Report message to a moderator
|
|
|
Re: Uploading an excel file using webutil in AIX [message #582472 is a reply to message #582423] |
Thu, 18 April 2013 11:52 |
|
sankalputtara
Messages: 53 Registered: January 2011 Location: Bangalore
|
Member |
|
|
I have figured out the portion where i am having issue:
Scenario:
I am reading a string(123456) from excel using the code
Client_OLE2.get_char_property(cell,'Value') ;
In windows this resulting value is 123456 but in AIX it is 123456.0
I am reading this into a character field.
Issue:
The value i am reading from the excel can be number or character i mean it could be either '123456' or 'abcdef'
If i use Client_OLE2.get_num_property(cell,'Value'); then the value returns without decimal, but i can not use this code when there is an character in excel.
|
|
|