dw.value
Class EnumValue
Object
dw.value.EnumValue
The class represents a single value for an Enumeration type. Enumeration types can be configured through the business manager for custom attributes. Some system attributes, e.g. the order status, are also of Enumeration types.

Each EnumValue has a base value and a display value. The type of the base value can be either String or Integer. Every EnumValue has a display value.

If the value of an Enumeration type object attribute is null, when that attribute is accessed an EnumValue is returned that has a base value of null, rather than null itself. This means that empty(object.attribute) would be false, and empty(object.attribute.value) would be true

.
Properties
displayValue  :  String  (Read Only)
The display value of the enumeration value. If no display value is configured the method return the string representation of the value.
value  :  Object  (Read Only)
The value of the enumeration value. This is either an integer value or a string.
Constructor Summary
This class does not have a constructor, so you cannot create it directly.
Method Summary
getDisplayValue() : String
Returns the display value of the enumeration value.
getValue() : Object
Returns the value of the enumeration value.
toString() : String
Same as getDisplayValue().
valueOf() : Object
According the ECMA specification, this method returns the "natural" primitive value of this object.
Salesforce Commerce Cloud Courses
Salesforce B2C Commerce Developer - Certification Tests
Why risk failing the SFCC exam? Get 180 real questions, killer content, and everything you need to crush the Salesforce B2C Commerce Developer certification.

Becoming a Salesforce B2C Commerce Developer is your ticket to higher salaries, better job opportunities, and the credibility to stand out from the competition. But let's be honestβ€”passing the certification exam isn't easy. That's where we come in.
Salesforce Javascript Developer I - Certification Tests
Not just another prep courseβ€”this is your shortcut to passing. Master JavaScript for Salesforce and go from 'hoping to pass' to knowing you will. Ready to start?

This isn't just another prep courseβ€”it's your shortcut to mastering the skills and confidence you need to pass. With multiple practice tests covering every section and a final exam simulation designed to mirror the real thing, you'll feel like you've already aced it before test day.
Salesforce B2C Commerce Architect - Certification Tests
Think the Developer exam was hard? Welcome to the next level.

The Salesforce B2C Commerce Architect certification is a whole different gameβ€”complex solutions, elevated difficulty, and skills that set you apart in the eCommerce industry. That's why we're including 11 downloadable PDF guides, packed with best practices and strategies to help you prepare for the exam and build confidence in every topic.
Method Detail
getDisplayValue
getDisplayValue() : String
Returns the display value of the enumeration value. If no display value is configured the method return the string representation of the value.

getValue
getValue() : Object
Returns the value of the enumeration value. This is either an integer value or a string.

toString
toString() : String
Same as getDisplayValue().

valueOf
valueOf() : Object
According the ECMA specification, this method returns the "natural" primitive value of this object. Here it is equivalent to getValue().

β™₯
Notifications pending to read 9