CLARITY: Using "Parent Object Attribute Reference" in auto numbering doesn't work properly when you XOG in the object instance.

Document ID : KB000020366
Last Modified Date : 14/02/2018
Show Technical Document Details

Description:

Using "Parent Object Attribute Reference" in auto numbering doesn't work properly when you XOG in the object instance.

When you create a new subproject instance through Clarity application that has "Parent Object Attribute Reference" in auto numbering, the format of attribute value is correct.
When you create a new subproject instance by XOG that has "Parent Object Attribute Reference" in auto numbering the format of attribute value is NOT correct (contains {project.name})

Steps to Reproduce:

  1. Create a new sub-object "Test" with Master object = "Project"

    Administration > object > "New" button (Object Name = "test ", Master Object = Project)

  2. Set up the auto numbering of the ID attribute in format "Parent Object Attribute Reference " + Numeric Counter

    Administration > object > "test" > Attribute > "ID" > Auto-numbering (Auto-numbered = checkbox, Schemes = Parent Object Attribute Reference + Numeric Counter)

  3. Create a new instance of subobject "Test"

    Home > Projects > "any_project" > Properties "Test List" > "New" button

  4. XOG in the new instance of the "Test" subobject use

    <args name="overrideAutoNumbering" value="false"/>

    The example of XOG:
    <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_customObjectInstance.xsd">   <Header action="write" externalSource="NIKU" objectType="customObjectInstance" version="13.1.0.0248"> <args name="overrideAutoNumbering" value="false"/> </Header>   <customObjectInstances objectCode="test">     <instance instanceCode="overwrite1" objectCode="test" parentInstanceCode="project_1" parentObjectCode="project">       <CustomInformation>         <ColumnValue name="partition_code">NIKU.ROOT</ColumnValue>         <ColumnValue name="name">overwrite1</ColumnValue>         <ColumnValue name="code">overwrite1</ColumnValue>         <ColumnValue name="odf_parent_id">5001000</ColumnValue>         <ColumnValue name="odf_cncrt_parent_id">5001000</ColumnValue>       </CustomInformation>       <OBSAssocs complete="false"/>     </instance>   </customObjectInstances> </NikuDataBus>

Expected Result: The new sub-object instance should have id = "projectname"number
Actual Result: The new sub-object instance has id = {project.name}number

Solution:

Workaround:
None.

Status/Resolution:
Resolved in Clarity 13.3