Try our conversational search powered by Generative AI!

Data Types available for Custom (Foundation/ Business) Objects

Vote:
 

http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Commerce/75/Meta-Data-Plus/Meta-Data-Plus/

 

Question pertains to customized Foundation or Business Objects where i need to understand which data types can be used, specifically looking to use DECIMAL.

Based on the above link, my understanding is that we can use DECIMAL for custom objects as well, can anyone confirm whether INT can be used under the data types how can we get this info.

 

My options under the customer objects are  Integer,Date time, Guid, currency, bolean, string

 

appreciate your help.

#123280
Jun 30, 2015 15:26
Vote:
 

The one you mentioned is here: http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-Commerce/75/Business-Foundation/Business-Meta-Model/MetaClass-class/

The link you posted was the MetaDataPlus - the catalog/order metaclasses, not the BusinessFoundation/Business object (a bit confusing, I must admit).

For business object you'll have to use currency instead, decimal is not supported via UI.

Regards.

/Q

#123285
Jun 30, 2015 17:03
Vote:
 

thanks for your reply, by not supported by UI do you mean there is another way to do this via database ?

also by assuming currency we can define data such as below :

1234.123456

 

#123287
Jun 30, 2015 17:50
Vote:
 

I would say no - but I'm not totally confident saying so - diving in Business Foundation is a hard task anyway.

The currency is stored as money in database, which "has accuracy to a ten-thousandth of a monetary unit.", so it's not as powerful as decimal, but I guess quite enough for almost every possible application.

Regards.

/Q

#123289
Jun 30, 2015 18:01
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.