Clarity: Project Financial Subpage is removed when attempting to restore the view in Admin Tool

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

Description:

The Project Financial Subpage is removed and cannot be restored anymore after restoring defaults of the "Financial::finpropertiesUpdate.projectCreate" view in the Admin Tool > Views listing.

Steps to Reproduce:

  1. Login to Clarity as an administrator user

  2. Main Application > Projects > Open an existing project

    Confirm the 'Financial' subpage link is shown and there are sections and attributes on the page

  3. Admin Tool > Studio: Objects > Project > Views > Project Properties [Layout:Edit]

    Confirm the 'Financial' sub-page is shown, drill into the page and confirm there are sections and attributes configured

  4. Admin Tool > Views > Filter Section : View = Financial::finpropertiesUpdate.projectCreate > click 'Filter' button

    If the project object has a partition model associated, then there will be more than one view returned

  5. Select/checkmark the view for the 'System' (or any partition unit) > click 'Restore Defaults' button

    A yellow alert message appears: 'Do you want to restore the selected views back to the default view? If partitions are being used, this will only affect the current partition.'

    Click 'Yes' button

    Note: the view is removed from the listing

  6. Admin Tool > Studio: Objects > Project > Views > Project Properties [Layout:Edit]

Expected Result: The Financial subpage should appear with restored defaults for sections and attributes on the subpage
Actual Result: The Financial subpage is deleted

Solution:

Workaround:

There are two options to restore the view.

  1. If your implementation is not highly configured for the Project Object, you can restore the views in the object.

    Admin Tool > Studio: Objects > Project > Views > Click 'Restore Defaults' button

    CAUTION: This action will restore ALL Project and Program views for the current partition.

  2. If your implementation is highly configured for the Project Object, you can use XOG to read the configuration, restore the views and XOG write the configuration back in.

    1. Perform a XOG Read action using the code below:

      <?xml version="1.0" encoding="UTF-8"?>
      <NikuDataBus xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../xsd/nikuxog_read.xsd">
      <Header version="8.0" action="read" objectType="contentPack" externalSource="NIKU">
      <args contentType="view" name="order_by_1" value="code"/>
      </Header>
      <ViewQuery>
      <Filter name="code" criteria="EQUALS">property</Filter>
      </ViewQuery>
      <ObjectQuery>
      <Filter name="object_code" criteria="EQUALS">project</Filter>
      </ObjectQuery>
      </NikuDataBus>


    2. Check the output of the XOG Read action to ensure successful output for XOG Write.

    3. Using an XML Editor, search for the Financial subpage view 'finpropertiesUpdate.projectCreate'.

    4. Remove the code section for this subpage (this is not a complete page due to the issue).

    5. Save the XOG Write file for use in the XOG write action.

    6. Admin Tool > Studio: Objects > Project > Views > Click 'Restore Defaults' button (for each partition)

    7. The 'Financial' subpage is now restored (and all modified views are restored for each partition)

    8. Perform the XOG Write action

    9. Admin Tool > Studio: Objects > Project > Views > Project Properties [Layout:Edit] -- The Financial subpage appears with content

Status/Resolution:
Resolved in Clarity 12.1.2

Keywords: CLARITYKB, CLRT-55464, clarity12resolved, clarity1212resolved.