1Z0-419 · Question #42
Which three statements are true about the default value for an entity object attribute? (Choose three.)
The correct answer is A. it can be a literal value. B. it can be defined by a Groovy expression. D. it can be defined by an Expression Language (EL) statement. A: The Value field (in the Edit Attribute dialog) allows you to specify a static default value for the attribute when the Value Type is set to Literal. For example, you can set the default value of the ServiceRequest entity object's Status attribute to Open, or set the default…
Question
Which three statements are true about the default value for an entity object attribute? (Choose three.)
Options
- Ait can be a literal value.
- Bit can be defined by a Groovy expression.
- Cit can be defined by a SQL select statement.
- Dit can be defined by an Expression Language (EL) statement.
- Eit can be defined by referencing a database stored procedure.
How the community answered
(34 responses)- A85% (29)
- C6% (2)
- E9% (3)
Explanation
A: The Value field (in the Edit Attribute dialog) allows you to specify a static default value for the attribute when the Value Type is set to Literal. For example, you can set the default value of the ServiceRequest entity object's Status attribute to Open, or set the default value of the User entity object's UserRole attribute to user. B: You can use a Groovy expression to define a default value for an attribute. This approach is useful if you want to be able to change default values at runtime. D: Groovy scripting logic is similar to Expression Language (EL)
Topics
Community Discussion
No community discussion yet for this question.