You need to sign in to do that
Don't have an account?

FieldType is displayed as double instead of an Integer
Hi,
I created a table in SF and for one of the fields I chose Number as data type. When I view the table in eclipse the field is displaying double as its data type. I do not want that field to be declared as double just need to be an Integer.
How can I solve this, quick help would be appreciated.
kathyani
I created a table in SF and for one of the fields I chose Number as data type. When I view the table in eclipse the field is displaying double as its data type. I do not want that field to be declared as double just need to be an Integer.
How can I solve this, quick help would be appreciated.
kathyani
When you declared your 'Number' to be 18 digits long, the API automatically created a double for you since an integer cannot contain 18 digits.
Is there any reason you can't work with a double in this case? It has 99.9% of the same properties as an integer, the only issue is if you're concerned about storage space...
totalNum = m.TotalNum__c;
totalNum is a variable declared in my value object that corresponds to TotalNum__c in SF.
Example:
totalMail = m.TotalMail__c;
where totalMail is the field defined in my value object that corresponds to TotalMail__c in SF. I had to declare totalMail as double when it could have just been an Integer. There will never be a decimal required in totalMail so I do not see a point as to why it has to be a double.
Message Edited by kevinbnpower on 12-11-2008 02:15 PM