dw.value
Class 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.
Methods inherited from class
Object
assign, create, create, defineProperties, defineProperty, entries, freeze, fromEntries, getOwnPropertyDescriptor, getOwnPropertyNames, getOwnPropertySymbols, getPrototypeOf, hasOwnProperty, is, isExtensible, isFrozen, isPrototypeOf, isSealed, keys, preventExtensions, propertyIsEnumerable, seal, setPrototypeOf, toLocaleString, toString, valueOf, values
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.
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.
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.
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.
valueOf
valueOf()
:
Object
According the ECMA specification, this method returns the "natural"
primitive value of this object. Here it is equivalent to getValue().