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:
- Login to Clarity as an administrator user
- Main Application > Projects > Open an existing project
Confirm the 'Financial' subpage link is shown and there are sections and attributes on the page
- 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
- 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
- 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
- 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.
- 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.
- 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.
- 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>
- Check the output of the XOG Read action to ensure successful output for XOG Write.
- Using an XML Editor, search for the Financial subpage view 'finpropertiesUpdate.projectCreate'.
- Remove the code section for this subpage (this is not a complete page due to the issue).
- Save the XOG Write file for use in the XOG write action.
- Admin Tool > Studio: Objects > Project > Views > Click 'Restore Defaults' button (for each partition)
- The 'Financial' subpage is now restored (and all modified views are restored for each partition)
- Perform the XOG Write action
- 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.