The Find Parent Package project provides an Item Action that determines the name of the context item's parent PackageDefinition. The import package contained in this project imports the labs_FindParentPackage Method and the labs_FindParentPackage Action. The package also adds the labs_FindParentPackage Action to the following ItemTypes:
- Action
- CommandBarSection
- Form
- Grid
- Identity
- ItemType
- Life Cycle Map
- List
- Method
- Permission
- PresentationConfiguration
- RelationshipType
- Report
- Sequence
- SQL
- Workflow Map
Release | Notes |
---|---|
v1.0.1 | Tested 11.0 SP12, SP15. Tested on Edge, Firefox 60 ESR, Chrome. |
v1.0.0 | First release. Tested on Internet Explorer 11, Firefox 38 ESR, Chrome. Though built and tested using Aras 11.0 SP7, this project should function in older releases of Aras 11.0 and Aras 10.0. |
Project | Aras |
---|---|
v1.0.1 | 10.0 SPx, 11.0 SP7+, 11.0 SP12+, 11.0 SP15 |
v1.0.0 | 10.0 SPx, 11.0 SP7; Old Community Board Migration |
Always back up your code tree and database before applying an import package or code tree patch!
- Aras Innovator installed (version 11.0 SPx preferred)
- Aras Package Import tool
- Find Parent Package import package
- Backup your database and store the BAK file in a safe place.
- Open up the Aras Package Import tool.
- Enter your login credentials and click Login
- Note: You must login as root for the package import to succeed!
- Enter "Find Parent Package" in the TargetRelease field.
- Optional: Enter a description in the Description field.
- Enter the path to your local
..\FindParentPackage\Import\imports.mf
file in the Manifest File field. - Select aras.labs.FindParentPackage in the Available for Import field.
- Select Type = Merge and Mode = Thorough Mode.
- Click Import in the top left corner.
- Close the Aras Package Import tool.
You are now ready to login to Aras and use the Find Parent Package action.
The Find Parent Package action is accessible from the Action menu in the Aras main window, the main grid context menu, and the Action menu in the Item tear-off window. The steps below show how to use the Find Parent Package action in the Aras main window Action menu.
- Login to Aras as an administrator (ex: admin).
- Navigate to Administration > Methods in the Table of Contents (TOC).
- Search for the labs_FindParentPackage Method in the main grid.
- Select the labs_FindParentPackage Method in the main grid.
- Click Action in the main menu and select Find Parent Package.
The action will return an alert dialog indicating that the parent package is aras.labs.FindParentPackage.
You can use the Find Parent Package with additional ItemTypes by adding the labs_FindParentPackage Action to the Action tab on the ItemType.
Alternatively, you can execute the following AML in Nash or AML Studio.
<AML>
<Item type="Item Action" action="add">
<source_id>
<Item type="ItemType" action="get" select="id" where="[ItemType].name='YourItemTypeHere'" />
</source_id>
<related_id>7E41725E177B4C04ADF87906B033900F</related_id>
</Item>
</AML>
Remember, only metadata items should be added to PackageDefinitions. For more information on packages and the types of items they should include, please see the Aras Package Import Export Utility documentation.
- Fork it!
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request
For more information on contributing to this project, another Aras Labs project, or any Aras Community project, shoot us an email at [email protected].
Aras Labs projects are published to Github under the MIT license. See the LICENSE file for license rights and limitations.