Clarity: 'Copy From' returns status entries from all Projects - Custom sub-objects.

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

Description:

Clicking on 'Copy From' on a sub-object instance return sub-object instances from all Projects, they are not filtered by project id so that you will only see the instances from the current project. Why?

Steps to Reproduce:

  1. Clarity Studio -> New -> create an object named "Project Sub-object A"

    • Select the radio button for 'Sub-object'

    • Select 'Project' as the Master Object, select the checkboxes for 'Event Enabled' and 'Copy Enabled'

  2. Clarity Application page -> Projects -> select a project "Project One" and navigate to the 'Project Sub-object A List' subpage

    • Click New and populate all required fields to create two new instances "AAA" and "BBB"

  3. Repeat step 2 to create two new instances "CCC" and "DDD" on another project "Project Two"

  4. From the Properties page of "CCC" click 'Copy From'

Expected: Clarity returns only "DDD" created on project "Project Two".
Actual: Clarity returns all "AAA", "BBB", and "DDD" from both projects.

Solution:

This is by design; all sub-objects of all projects should be returned. The object copy functionality allows one sub-object to be copied from another sub-object, regardless of object type or parent object instance. For example, a sub-object instance of Project can copy from a sub-object instance of idea (if there is such an object mapping defined); a sub-object instance of Project can copy from a sub-object instance of another project object instance (that you have access to).

Keywords: CLARITYKB, CLRT-16326, NAB, sub-object, odf_parent_id, portlet.