Share via


RetailAttributeHelper::createDefaultAttributeValue Method [AX 2012]

Finds or creates an attribute value for the supplied attribute, with the attribute linked to an entity through the supplied instance table record id.

The optional attribute group parameter is used to determine the default value, if it needs to be created.

Syntax

client server public static EcoResValue createDefaultAttributeValue(
    RecId _instanceValueRecId, 
    EcoResAttribute _attribute, 
   [EcoResAttributeGroupAttribute _attributeGroupAttribute, 
    boolean _forUpdate])

Run On

Called

Parameters

  • _instanceValueRecId
    Type: RecId Extended Data Type
    The records id of the linking table, that links the supplied attribute and some entity, for which the value is being looked up.
  • _forUpdate
    Type: boolean
    A Boolean value that indicates whether to read the record for update; optional.

Return Value

Type: EcoResValue Table
The attribute value.

See Also

Reference

RetailAttributeHelper Class