Skip to content

Commit

Permalink
Merge pull request #7 from cgillis-aras/update-to-120
Browse files Browse the repository at this point in the history
Updated to use CUI data model
  • Loading branch information
cgillis-aras authored Jul 23, 2020
2 parents e106c25 + 698b349 commit 772be6f
Show file tree
Hide file tree
Showing 10 changed files with 91 additions and 86 deletions.
6 changes: 6 additions & 0 deletions Import/HideTabsByIdentity/Import/Fixes/Part BOM.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<AML>
<!-- Hides the Part BOM relationship -->
<Item type="RelationshipType" id="159C6D88795B4A86864420863466F728" action="edit">
<hide_in_all>1</hide_in_all>
</Item>
</AML>
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<AML>
<!-- Hides the BOM Structure relationship -->
<Item type="RelationshipType" id="567E4149FBF74DACA0B0C4C9B1E79A3B" action="edit">
<hide_in_all>1</hide_in_all>
</Item>
</AML>

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<AML>
<Item type="cui_Control" id="0C8336D11DA44513B59D327341780DB8" action="add">
<additional_data>{"relTypeId": "567E4149FBF74DACA0B0C4C9B1E79A3B"}</additional_data>
<control_type>TabElementControl</control_type>
<label xml:lang="en">BOM Structure</label>
<parent_control keyed_name="ItemView.RelationshipAccordionTabs" type="cui_Control">88D09A43049E4341A99E4DF63B81C236</parent_control>
<name>labs.bom_structure.tabelement</name>
</Item>
</AML>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<AML>
<Item type="cui_Control" id="D079821605574887BE4777290E162455" action="add">
<additional_data>{"relTypeId": "159C6D88795B4A86864420863466F728"}</additional_data>
<control_type>TabElementControl</control_type>
<label xml:lang="en">Part BOM</label>
<parent_control keyed_name="ItemView.RelationshipAccordionTabs" type="cui_Control">88D09A43049E4341A99E4DF63B81C236</parent_control>
<name>labs.part_bom.tabelement</name>
</Item>
</AML>
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<AML>
<Item type="cui_PresentConfigWinSection" id="92BF027573FD45AFA42808F92E6CEF88" action="add">
<related_id keyed_name="labs.part.itemview" type="cui_WindowSection">
<Item type="cui_WindowSection" id="3C8719D33E924E6590B294AE16B0A474" action="add">
<classification>Data Model</classification>
<location keyed_name="ItemView" type="cui_Location">C18BD6E10E024EC786799C510D586143</location>
<name>labs.part.itemview</name>
<Relationships>
<Item type="cui_WindowSectionControl" id="E3B1BD6D10E245F288411F9F220695DB" action="add">
<action>Add</action>
<related_id keyed_name="labs.part_bom.tabelement" type="cui_Control">D079821605574887BE4777290E162455</related_id>
<role keyed_name="Administrators" type="Identity">2618D6F5A90949BAA7E920D1B04C7EE1</role>
<sort_order>128</sort_order>
<source_id keyed_name="labs.part.itemview" type="cui_WindowSection">3C8719D33E924E6590B294AE16B0A474</source_id>
</Item>
<Item type="cui_WindowSectionControl" id="931C691F005145EF899729C691D35879" action="add">
<action>Add</action>
<related_id keyed_name="labs.bom_structure.tabelement" type="cui_Control">0C8336D11DA44513B59D327341780DB8</related_id>
<role keyed_name="Administrators" type="Identity">2618D6F5A90949BAA7E920D1B04C7EE1</role>
<sort_order>256</sort_order>
<source_id keyed_name="labs.part.itemview" type="cui_WindowSection">3C8719D33E924E6590B294AE16B0A474</source_id>
</Item>
</Relationships>
</Item>
</related_id>
<role keyed_name="World" type="Identity">A73B655731924CD0B027E4F4D5FCC0A9</role>
<sort_order>128</sort_order>
<source_id keyed_name="F2BAFC3F368B4EDE968406BFDB6597AC" type="PresentationConfiguration">F2BAFC3F368B4EDE968406BFDB6597AC</source_id>
</Item>
</AML>
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<AML>
<Item type="cui_WindowSection" id="3C8719D33E924E6590B294AE16B0A474" action="add">
<classification>Data Model</classification>
<location keyed_name="ItemView" type="cui_Location">C18BD6E10E024EC786799C510D586143</location>
<name>labs.part.itemview</name>
<Relationships>
<Item type="cui_WindowSectionControl" id="E3B1BD6D10E245F288411F9F220695DB" action="add">
<action>Add</action>
<related_id keyed_name="labs.part_bom.tabelement" type="cui_Control">D079821605574887BE4777290E162455</related_id>
<role keyed_name="Administrators" type="Identity">2618D6F5A90949BAA7E920D1B04C7EE1</role>
<sort_order>128</sort_order>
<source_id keyed_name="labs.part.itemview" type="cui_WindowSection">3C8719D33E924E6590B294AE16B0A474</source_id>
</Item>
<Item type="cui_WindowSectionControl" id="931C691F005145EF899729C691D35879" action="add">
<action>Add</action>
<related_id keyed_name="labs.bom_structure.tabelement" type="cui_Control">0C8336D11DA44513B59D327341780DB8</related_id>
<role keyed_name="Administrators" type="Identity">2618D6F5A90949BAA7E920D1B04C7EE1</role>
<sort_order>256</sort_order>
<source_id keyed_name="labs.part.itemview" type="cui_WindowSection">3C8719D33E924E6590B294AE16B0A474</source_id>
</Item>
</Relationships>
</Item>
</AML>
2 changes: 1 addition & 1 deletion Import/imports.mf
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
<imports>
<package name="aras.labs.HideTabsByIdentity" path="HideTabsByIdentity\Import" />
<package name="aras.labs.cui.HideTabsByIdentity" path="HideTabsByIdentity\Import" />
</imports>
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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).
Expand Down Expand Up @@ -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.

0 comments on commit 772be6f

Please sign in to comment.