How to populate the RECORD VERSION of a related record in an attribute of the parent record?

How to populate the RECORD VERSION of a related record in an attribute of the parent record?

book

Article ID: KB0086182

calendar_today

Updated On:

Products Versions
TIBCO Collaborative Information Manager -
Not Applicable -

Description

Resolution:
How to populate the RECORD VERSION of a related record in an attribute of the parent record?

Environment:

TIBCO Product name and version: TIBCO Collaborative Information Manager All
Operating System(s): All Operating Systems

Symptoms:

None.

Cause:

None.

Resolution:

The system attribute RECORD_VERSION of a related record cannot be accessed from the parent record using a relationship_record link. Instead, you can use a propagate constraint in the CHILD master catalog's catalogvalidation.xml to propagate the RECORD_VERSION of the child record to the parent record.

Example: Have the following constraints in the CHILD master catalog catalogvalidation.xml

&ltexecution_directive first_pass="required"/>
&ltdeclare>
    &ltvar&gtCONTAINEDBY</var>
    &ltlink type="relationship_record">
      &ltliteral&gtCONTAINEDBY</literal>
    </link>
</declare>

&ltconstraint>
    &ltname&gtPropagateValues</name>
    &ltdescription&gtPropagateValues</description>
    &ltaction>
      &ltpropagate type="inline">
        &ltvar&gtCONTAINEDBY</var>
        &ltaction>
          &ltassign>
            &ltvar&gtSHORTDESC</var>
            &ltvar&gtLINK/RECORD_VERSION</var>
          </assign>
    </action>
      </propagate>
    </action>
  </constraint>

Attachments:

None.

References:

None.

Issue/Introduction

How to populate the RECORD VERSION of a related record in an attribute of the parent record?