Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ if (typeof result == "object" && !Array.isArray(result)) {
<method_type>JavaScript</method_type>
<name>labs_RunClientMethodAction</name>
</Item>
</AML>
</AML>
1 change: 1 addition & 0 deletions Import/imports.mf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<imports>
<package name="aras.labs.RunClientMethod.test" path="test\Import" />
<package name="aras.labs.RunClientMethod" path="RunClientMethod\Import" />
</imports>
18 changes: 18 additions & 0 deletions Import/test/Import/Method/test client method action.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<AML>
<Item type="Method" id="DF3EE005E1CF4AB9BDF4AA7FF3328BE5" action="add">
<comments>client method for testing "Run Client Method" action in method editor</comments>
<execution_allowed_to keyed_name="Administrators" type="Identity">2618D6F5A90949BAA7E920D1B04C7EE1</execution_allowed_to>
<method_code><![CDATA[//Get Variable
var testV = this.newItem("Variable","get");
testV.setProperty("name","Test Variable");
testV = testV.apply();
//If cannot get variable, throw error
if (testV.isError())
return alert(testV.getErrorString());
//return variable value to new tab
return testV.getProperty("value","no test variable set");
]]></method_code>
<method_type>JavaScript</method_type>
<name>test client method action</name>
</Item>
</AML>
6 changes: 6 additions & 0 deletions Import/test/Import/Variable/Test Variable.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<AML>
<Item type="Variable" id="1938A875F7814D878CF75448E7EF3D00" action="add">
<default_value>Test Complete</default_value>
<name>Test Variable</name>
</Item>
</AML>
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,17 @@ This package adds a method and action to run client-side Methods from the method

Release | Notes
--------|--------
[v1.1.0](https://github.com/ArasLabs/run-client-method/releases/tag/v1.1.0) | Updated Usage for v12; Moved test data from xml into package
[v1.0.1](https://github.com/ArasLabs/run-client-method/releases/tag/v1.0.1) | Tested 11.0 SP12, SP15. Tested on Edge, Firefox 60 ESR, Chrome.
[v1.0.0](https://github.com/ArasLabs/run-client-method/releases/tag/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.

#### Supported Aras Versions

Project | Aras
--------|------
[v1.0.1](https://github.com/ArasLabs/run-client-method/releases/tag/v1.0.1) | 10.0 SPx, 11.0 SP7+, 11.0 SP12+, 11.0 SP15
[v1.0.0](https://github.com/ArasLabs/run-client-method/releases/tag/v1.0.0) | 10.0 SPx, 11.0 SP7; Old Community Board Migration
[v1.1.0](https://github.com/ArasLabs/run-client-method/releases/tag/v1.1.0) | 10.0+, 11.0+, 12.0+
[v1.0.1](https://github.com/ArasLabs/run-client-method/releases/tag/v1.0.1) | 10.0+, 11.0+
[v1.0.0](https://github.com/ArasLabs/run-client-method/releases/tag/v1.0.0) | 10.0+, 11.0 SP7; Old Community Board Migration

## Installation

Expand All @@ -23,7 +25,7 @@ Project | Aras

### Pre-requisites

1. Aras Innovator installed (version 11.0 SPx preferred)
1. Aras Innovator installed (version 12.0 preferred)
2. Aras Package Import tool
3. RunClientMethod import package

Expand All @@ -36,11 +38,10 @@ 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 `..\RunClientMethod\Import\imports.mf` file in the Manifest File field.
6. Select **RunClientMethod** in the Available for Import field.
6. Select **aras.labs.RunClientMethod** and **aras.labs.RunClientMethod.test** 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.
10. (Optional) Execute the contents of [Data\testData.xml](./Data/testData.xml) in Nash or AML Studio to add sample data to your database for testing.

You are now ready to login to Aras and try out the Run Client Method action.

Expand All @@ -49,8 +50,9 @@ You are now ready to login to Aras and try out the Run Client Method action.
1. Log in to Aras as admin.
2. Navigate to **Administration > Methods** in the table of contents (TOC).
3. Search for a client method you would like to test and open it.
* The optional test data contains a method for testing called "test run client method".
4. Click **Actions > Run Client Method** in the main menu.
- The test package contains a method for testing called "test run client method". It will output a result with “Test Complete”.
4. Click the More […] menu and **Run Client Method**.
- Click **Actions > Run Client Method** in the main menu. (v11)

The Run Client Method action will display a window with the output returned by the method. If the method does not return a value, the window will be blank.

Expand Down