-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
452b64e
commit 8e73a9f
Showing
5 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
15 changes: 15 additions & 0 deletions
15
Import/CUI_Shortcut/Import/CommandBarSectionItem/84462FD831E749FC82D7CB2AD992123E.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
<AML> | ||
<Item type="CommandBarSectionItem" id="84462FD831E749FC82D7CB2AD992123E" action="add"> | ||
<action>Add</action> | ||
<related_id keyed_name="labs.cui.mws_ctrl_a" type="CommandBarItem"> | ||
<Item type="CommandBarShortcut" id="300D358ED29C452AB241B2590B5377F7" action="add"> | ||
<on_click_handler keyed_name="labs_cui_mws_ctrl_a" type="Method">E81CB162F2EE4E62A37FCFB8CCD9036F</on_click_handler> | ||
<shortcut>ctrl+a</shortcut> | ||
<name>labs.cui.mws_ctrl_a</name> | ||
</Item> | ||
</related_id> | ||
<role keyed_name="World" type="Identity">A73B655731924CD0B027E4F4D5FCC0A9</role> | ||
<sort_order>640</sort_order> | ||
<source_id keyed_name="com.aras.innovator.cui_default.mainWindowShortcuts" type="CommandBarSection">94A067E55B014B57A9E959DF66AC6F4D</source_id> | ||
</Item> | ||
</AML> |
7 changes: 7 additions & 0 deletions
7
Import/CUI_Shortcut/Import/CommandBarShortcut/labs.cui.mws_ctrl_a.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<AML> | ||
<Item type="CommandBarShortcut" id="300D358ED29C452AB241B2590B5377F7" action="add"> | ||
<on_click_handler keyed_name="labs_cui_mws_ctrl_a" type="Method">EC4DEEE851DA4FBBB73D46A5C139BAE2</on_click_handler> | ||
<shortcut>ctrl+a</shortcut> | ||
<name>labs.cui.mws_ctrl_a</name> | ||
</Item> | ||
</AML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<AML> | ||
<Item type="Method" id="EC4DEEE851DA4FBBB73D46A5C139BAE2" action="add"> | ||
<execution_allowed_to keyed_name="World" type="Identity">A73B655731924CD0B027E4F4D5FCC0A9</execution_allowed_to> | ||
<method_code><![CDATA[if (this.work && this.work.grid) { | ||
var workFrame = this.work; | ||
var selectedIds = workFrame.grid.getSelectedItemIds(',').split(','); | ||
var rowNum = workFrame.grid.getRowCount(); | ||
var i; | ||
for (i = 0; i < rowNum; i++) | ||
{ | ||
var id = workFrame.grid.getRowId(i); | ||
if (!selectedIds.contains(id)) { | ||
workFrame.grid.setSelectedRow(id, true, false); | ||
} | ||
} | ||
}]]></method_code> | ||
<method_type>JavaScript</method_type> | ||
<name>labs_cui_mws_ctrl_a</name> | ||
</Item> | ||
</AML> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<imports> | ||
<package name="aras.labs.CUI_Shortcut" path="CUI_Shortcut\Import" /> | ||
</imports> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,63 @@ | ||
# cui-shortcut | ||
Demonstrates how to add a Ctrl+a shortcut through CUI to select all of the rows in a grid | ||
# CUI Shortcut | ||
|
||
The CUI Shortcut project demonstrates how to . | ||
|
||
## Project Details | ||
|
||
**Built Using:** Aras 11.0 SP9 | ||
**Browsers Tested:** Internet Explorer 11, Firefox 45 ESR, Chrome | ||
|
||
> Though built and tested using Aras 11.0 SP9, this project should function in versions 11.0 SP7 and greater. The CUI tools this project was built on were introduced in 11.0 SP7. | ||
## Installation | ||
|
||
#### Important! | ||
**Always back up your code tree and database before applying an import package or code tree patch!** | ||
|
||
### Pre-requisites | ||
|
||
1. Aras Innovator installed (version 11.0 SPx preferred) | ||
2. Aras Package Import tool | ||
3. CUI Shortcut import package | ||
|
||
### Install Steps | ||
|
||
1. Backup your database and store the BAK file in a safe place. | ||
2. Open up the Aras Package Import tool. | ||
3. Enter your login credentials and click **Login** | ||
* _Note: You must login as root for the package import to succeed!_ | ||
4. Enter the package name in the TargetRelease field. | ||
* Optional: Enter a description in the Description field. | ||
5. Enter the path to your local `..\cui-shortcut\Import\imports.mf` file in the Manifest File field. | ||
6. Select **aras.labs.CUI_Shortcut** 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. | ||
|
||
You are now ready to login to Aras and try out this new CUI Shortcut. | ||
|
||
## Usage | ||
|
||
1. Log in to Aras as admin. | ||
2. Navigate to any ItemType in the TOC that has multiple items in its grid. | ||
3. Press **Ctrl+a** on your keyboard | ||
4. See that all of the currently visible rows in the grid are selected | ||
|
||
## Contributing | ||
|
||
1. Fork it! | ||
2. Create your feature branch: `git checkout -b my-new-feature` | ||
3. Commit your changes: `git commit -am 'Add some feature'` | ||
4. Push to the branch: `git push origin my-new-feature` | ||
5. 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]. | ||
|
||
## Credits | ||
|
||
Project written, documented, and published by Christopher Gillis at Aras Labs. @csgillis-aras | ||
|
||
|
||
## License | ||
|
||
Aras Labs projects are published to Github under the MIT license. See the [LICENSE file](./LICENSE.md) for license rights and limitations. |