Working with Generic Attributes and Attribute Displays

You can retrieve a few terminal attributes of a given object. The following methods are general for most of objects such as requirement specification, requirement, logical reference, etc. You can find others dedicated to your objects that work in the same way. Some methods retrieve the internal value from the database that is the raw value, while others retrieve the displayed value that is a value formatted for display. For example, if you need to get the internationalized value or a display value for Dimension or Range.

The types that are listed below refer to the PLM.

Most of the time, a string that corresponds to the technical value of the attribute, that is the value stored in the database, is provided in the Attributes category. This is the raw value, also named internal value.

If you want the display value of an attribute, you can use the proper method from the Attribute Display category.

Method and Parameters Category Internal Name Return Description
Various relationship and business object types
Modified Attributes modified String The last modified date of an object. This is the raw value of the attribute.
Modified: Display Attribute Display modifiedDisplay String The last modified date of an object. This is the display value of the attribute.
Name Attributes name String The name of an object. This is the raw value of the attribute.
Organization Attributes organization String The organization name of an object. This is the raw value of the attribute.
Originated Attributes originated String The created date and hour of an object. This is the raw value of the attribute.
Originated: Display Attribute Display originatedDisplay String The created date and hour of an object. This is the display value of the attribute.
Owner Attributes owner String The owner name of an object. This is the raw value of the attribute.
Owner: Display Attribute Display ownerDisplay String The owner name of an object. This is the display value of the attribute.
Type Attributes type String The type of an object. This is the raw value of the attribute.
Type: Display Attribute Display typeDisplay String The type of an object. This is the display value of the attribute.
Attribute Value
Parameters
Name(?) — String: the internal name for the attribute.
Attributes getAttributeValue String The value of the attribute. This is the raw value of the attribute. It can be a numerical value in a technical unit or an internal value of an enumeration instead of its internationalized name.
Only for business object types
Description Attributes description String The description of the object. This is the raw value of the attribute.
Revision Attributes revision String The revision of an object. This is the raw value of the attribute.
Minor Revision Attributes minorrevision String The minor revision of an object, if exists. This is the raw value of the attribute.
Major Revision Attributes majorrevision String The major revision of an object. This is the raw value of the attribute.
Maturity State Attributes current String The maturity state of an object. This is the raw value of the attribute.
State: Display Attribute Display lifecycleCurrentStateDisplay String The internationalized name of an object's state. This is the display value of the attribute.
States Attributes lifecycleStates PLM.EnumValue (*) A list of object policy states.
Policy Attributes policy String The policy of an object. This is the raw value of the attribute.
Policy: Display Attribute Display policyDisplay String The policy of an object. This is the display value of the attribute.
Attributes on specific business object, relationship, or interface types based on their data model definition
<Attribute> Attributes <attributeName> Integer The value of the attribute. This is the raw value of the attribute.

All values are returned as strings, except for Booleans and Integers.

Boolean
String
<Attribute>: Default Value Attributes <attributeName>_DefaultValue Integer The default value of the attribute. This is the raw value of the attribute.

All values are returned as strings, except for Booleans and Integers.

Note: Is available depending on the types.
Boolean
String
Range attributes on specific business object, relationship, or interface types based on their data model definition (Example: Design Range of Raw Material)
<Attribute>: Display
Parameters
Value Name(?) — String: the raw value of range.
Attribute Display <attributeName>_RangeDisplay String The display of the enum value.
Note: If the parameter is defined, returns the display value of the attribute in parameter; otherwise returns the current value.
Recommendation: Use this method without parameter.
<Attribute>: Authorized Values Attributes <attributeName>_AuthorizedValues PLM.EnumValue A list of object authorized values.
PLM.EnumValue
Value Attributes AttributeEnumValue String The enum value. This is the raw value of the enum.
Display Attribute Display AttributeEnumValueDisplay String The enum value. This is the display value of the enum.
Dimension on attributes on specific business object, relationship, or interface based on their data model definition (example: Estimated Cost on Requirement type)
<Attribute> Dimension Information Attributes <attributeName>Dimension PLM.RGNDimension A Dimension object.
PLM.RGNDimension
Display
Parameters
Format(?) — String: the format of the attribute.
Attribute Display display String Displays the dimension attribute value and unit in the default or customized format, using the unit symbol. The Display As Entered and Display Unit attribute configuration options determine the display.

Attribute Configuration Display Behavior
Display As Entered + Display Unit Displays the entered value and unit, preserving the entered formatting, including leading and trailing zeros where applicable.
Display Unit only Displays the entered value and unit.

Note:
  • The default format is <value> <unit>, for example 1.2 km.
  • If you insert a parameter for the display method, use:
    • %1$s for the dimension value.
    • %2$s for the dimension unit.

    For example, enter %1$s in %2$s as the argument. For a dimension value of 1.2 km, the display shows 1.2 in km.

Note: (*) means list and (?) means optional.