From 698b349bc7a64c4d74de7e24d75bb3f4bcae4cc9 Mon Sep 17 00:00:00 2001 From: Christopher Gillis Date: Thu, 23 Jul 2020 19:07:19 -0400 Subject: [PATCH] Updated to use CUI data model * Removed the custom method and Form Event * Set "Hide In All" flag on both relationships * Updated Part Client Style Since the relationships are now hidden by default, the CUI items on the Part Client Style now display the tabs to only users in the Administrators identity. Functionally, this is the same as the previous project, but with some added benefits. --- .../Import/Fixes/Part BOM.xml | 6 ++ .../Import/Fixes/Part MultiLevel BOM.xml | 6 ++ .../E55EB465BCED496FA5DDC5923321415C.xml | 11 --- .../Import/Method/labs_HideTabsByIdentity.xml | 69 ------------------- .../labs.bom_structure.tabelement.xml | 9 +++ .../cui_Control/labs.part_bom.tabelement.xml | 9 +++ .../92BF027573FD45AFA42808F92E6CEF88.xml | 30 ++++++++ .../cui_WindowSection/labs.part.itemview.xml | 23 +++++++ Import/imports.mf | 2 +- README.md | 12 ++-- 10 files changed, 91 insertions(+), 86 deletions(-) create mode 100644 Import/HideTabsByIdentity/Import/Fixes/Part BOM.xml create mode 100644 Import/HideTabsByIdentity/Import/Fixes/Part MultiLevel BOM.xml delete mode 100644 Import/HideTabsByIdentity/Import/Form Event/E55EB465BCED496FA5DDC5923321415C.xml delete mode 100644 Import/HideTabsByIdentity/Import/Method/labs_HideTabsByIdentity.xml create mode 100644 Import/HideTabsByIdentity/Import/cui_Control/labs.bom_structure.tabelement.xml create mode 100644 Import/HideTabsByIdentity/Import/cui_Control/labs.part_bom.tabelement.xml create mode 100644 Import/HideTabsByIdentity/Import/cui_PresentConfigWinSection/92BF027573FD45AFA42808F92E6CEF88.xml create mode 100644 Import/HideTabsByIdentity/Import/cui_WindowSection/labs.part.itemview.xml diff --git a/Import/HideTabsByIdentity/Import/Fixes/Part BOM.xml b/Import/HideTabsByIdentity/Import/Fixes/Part BOM.xml new file mode 100644 index 0000000..8497108 --- /dev/null +++ b/Import/HideTabsByIdentity/Import/Fixes/Part BOM.xml @@ -0,0 +1,6 @@ + + + + 1 + + \ No newline at end of file diff --git a/Import/HideTabsByIdentity/Import/Fixes/Part MultiLevel BOM.xml b/Import/HideTabsByIdentity/Import/Fixes/Part MultiLevel BOM.xml new file mode 100644 index 0000000..3840e1d --- /dev/null +++ b/Import/HideTabsByIdentity/Import/Fixes/Part MultiLevel BOM.xml @@ -0,0 +1,6 @@ + + + + 1 + + \ No newline at end of file diff --git a/Import/HideTabsByIdentity/Import/Form Event/E55EB465BCED496FA5DDC5923321415C.xml b/Import/HideTabsByIdentity/Import/Form Event/E55EB465BCED496FA5DDC5923321415C.xml deleted file mode 100644 index 40e55a3..0000000 --- a/Import/HideTabsByIdentity/Import/Form Event/E55EB465BCED496FA5DDC5923321415C.xml +++ /dev/null @@ -1,11 +0,0 @@ - - - onformpopulated - - - labs_HideTabsByIdentity - - - CAF99D0A8E6E44E9A681C38015FACE91 - - \ No newline at end of file diff --git a/Import/HideTabsByIdentity/Import/Method/labs_HideTabsByIdentity.xml b/Import/HideTabsByIdentity/Import/Method/labs_HideTabsByIdentity.xml deleted file mode 100644 index 22a8d54..0000000 --- a/Import/HideTabsByIdentity/Import/Method/labs_HideTabsByIdentity.xml +++ /dev/null @@ -1,69 +0,0 @@ - - - A73B655731924CD0B027E4F4D5FCC0A9 - - JavaScript - labs_HideTabsByIdentity - - diff --git a/Import/HideTabsByIdentity/Import/cui_Control/labs.bom_structure.tabelement.xml b/Import/HideTabsByIdentity/Import/cui_Control/labs.bom_structure.tabelement.xml new file mode 100644 index 0000000..98f40e7 --- /dev/null +++ b/Import/HideTabsByIdentity/Import/cui_Control/labs.bom_structure.tabelement.xml @@ -0,0 +1,9 @@ + + + {"relTypeId": "567E4149FBF74DACA0B0C4C9B1E79A3B"} + TabElementControl + + 88D09A43049E4341A99E4DF63B81C236 + labs.bom_structure.tabelement + + \ No newline at end of file diff --git a/Import/HideTabsByIdentity/Import/cui_Control/labs.part_bom.tabelement.xml b/Import/HideTabsByIdentity/Import/cui_Control/labs.part_bom.tabelement.xml new file mode 100644 index 0000000..2f4f982 --- /dev/null +++ b/Import/HideTabsByIdentity/Import/cui_Control/labs.part_bom.tabelement.xml @@ -0,0 +1,9 @@ + + + {"relTypeId": "159C6D88795B4A86864420863466F728"} + TabElementControl + + 88D09A43049E4341A99E4DF63B81C236 + labs.part_bom.tabelement + + \ No newline at end of file diff --git a/Import/HideTabsByIdentity/Import/cui_PresentConfigWinSection/92BF027573FD45AFA42808F92E6CEF88.xml b/Import/HideTabsByIdentity/Import/cui_PresentConfigWinSection/92BF027573FD45AFA42808F92E6CEF88.xml new file mode 100644 index 0000000..a6ad071 --- /dev/null +++ b/Import/HideTabsByIdentity/Import/cui_PresentConfigWinSection/92BF027573FD45AFA42808F92E6CEF88.xml @@ -0,0 +1,30 @@ + + + + + Data Model + C18BD6E10E024EC786799C510D586143 + labs.part.itemview + + + Add + D079821605574887BE4777290E162455 + 2618D6F5A90949BAA7E920D1B04C7EE1 + 128 + 3C8719D33E924E6590B294AE16B0A474 + + + Add + 0C8336D11DA44513B59D327341780DB8 + 2618D6F5A90949BAA7E920D1B04C7EE1 + 256 + 3C8719D33E924E6590B294AE16B0A474 + + + + + A73B655731924CD0B027E4F4D5FCC0A9 + 128 + F2BAFC3F368B4EDE968406BFDB6597AC + + \ No newline at end of file diff --git a/Import/HideTabsByIdentity/Import/cui_WindowSection/labs.part.itemview.xml b/Import/HideTabsByIdentity/Import/cui_WindowSection/labs.part.itemview.xml new file mode 100644 index 0000000..95b2c43 --- /dev/null +++ b/Import/HideTabsByIdentity/Import/cui_WindowSection/labs.part.itemview.xml @@ -0,0 +1,23 @@ + + + Data Model + C18BD6E10E024EC786799C510D586143 + labs.part.itemview + + + Add + D079821605574887BE4777290E162455 + 2618D6F5A90949BAA7E920D1B04C7EE1 + 128 + 3C8719D33E924E6590B294AE16B0A474 + + + Add + 0C8336D11DA44513B59D327341780DB8 + 2618D6F5A90949BAA7E920D1B04C7EE1 + 256 + 3C8719D33E924E6590B294AE16B0A474 + + + + \ No newline at end of file diff --git a/Import/imports.mf b/Import/imports.mf index 5da4411..2a55e97 100644 --- a/Import/imports.mf +++ b/Import/imports.mf @@ -1,3 +1,3 @@ - + \ No newline at end of file diff --git a/README.md b/README.md index d8add76..424e8c1 100644 --- a/README.md +++ b/README.md @@ -2,12 +2,13 @@ It may be necessary that only certain users or groups are able to view the multiple relationships to a single item. -The sample code in this project demonstrates how to hide tabs for members of a specific identity. For a more general example, check out the [ArasLabs/hide-tabs](https://github.com/ArasLabs/hide-tabs) project or the ['Hide Relationship Tabs on Aras Forms' post](http://community.aras.com/hide-relationship-tabs-aras-forms/) on the [Aras Labs blog.](http://community.aras.com/category/aras-labs/) +This project demonstrates a code-free approach to handle this use case by using the Configurable User Interface (CUI) data model. Previous versions of this project would hide the relationship tabs for only a single Form. The configuration changes made in this project now hide the relationship tabs from any Form of a given ItemType. ## History Release | Notes --------|-------- +[v5.0.0](https://github.com/ArasLabs/hide-tabs-by-identity/releases/tag/v5.0.0) | Updated to use CUI [v4.0.0](https://github.com/ArasLabs/hide-tabs-by-identity/releases/tag/v4.0.0) | Tested on 12.0, 12.0 SP1 [v3.0.1](https://github.com/ArasLabs/hide-tabs-by-identity/releases/tag/v3.0.1) | Fix readme and screenshot for Aras11SP12. [v3](https://github.com/ArasLabs/hide-tabs-by-identity/releases/tag/v3) | Updated project with import package to support Aras 11 SP9 @@ -18,6 +19,7 @@ Release | Notes Project | Aras --------|------ +[v5.0.0](https://github.com/ArasLabs/hide-tabs-by-identity/releases/tag/v5.0.0) | 12.0 SP7 [v4.0.0](https://github.com/ArasLabs/hide-tabs-by-identity/releases/tag/v4.0.0) | 12.0, 12.0 SP1 [v3.0.1](https://github.com/ArasLabs/hide-tabs-by-identity) | 11 SP12 [v3](https://github.com/ArasLabs/hide-tabs-by-identity/releases/tag/v3) | 11 SP9 @@ -44,14 +46,14 @@ Project | Aras 4. Enter the package name in the TargetRelease field. * Optional: Enter a description in the Description field. 5. Enter the path to your local `..\HideTabsByIdentity\Import\imports.mf` file in the Manifest File field. -6. Select **aras.labs.HideTabsByIdentity** in the Available for Import field. +6. Select **aras.labs.cui.HideTabsByIdentity** in the Available for Import field. 7. Select Type = **Merge** and Mode = **Thorough Mode**. 8. Click **Import** in the top left corner. 9. Close the Aras Package Import tool. ## Usage -The sample code in this project hides the BOM and BOM Structure tabs for any user who is not a member of the Administrators identity. +The configuration in this project hides the BOM and BOM Structure tabs for any user who is not a member of the Administrators identity. 1. Log in to Aras as a user in the Administrators identity - i.e. 'admin'. 2. Select **Design > Parts** in the Table of Contents (TOC). @@ -80,10 +82,10 @@ For more information on contributing to this project, another Aras Labs project, ## Credits -Original code written by Aras Support. - Documented and published by Eli Donahue for Aras Labs. @EliJDonahue +Maintained by Christopher Gillis for Aras Labs. @cgillis-aras + ## License Aras Labs projects are published to Github under the MIT license. See the [LICENSE file](./LICENSE.md) for license rights and limitations. \ No newline at end of file