From ced3f7a3253077725e86d36ed97c8135d5e26cca Mon Sep 17 00:00:00 2001 From: Sam Poe Date: Fri, 2 Aug 2019 11:31:24 -0400 Subject: [PATCH] Update Usage - update Usage for v12 - move xml into proper package - change test method to safe example from system variable --- .../Import/Method/Run Client Method Action.xml | 2 +- Import/imports.mf | 1 + .../Method/test client method action.xml | 18 ++++++++++++++++++ Import/test/Import/Variable/Test Variable.xml | 6 ++++++ README.md | 16 +++++++++------- 5 files changed, 35 insertions(+), 8 deletions(-) create mode 100644 Import/test/Import/Method/test client method action.xml create mode 100644 Import/test/Import/Variable/Test Variable.xml diff --git a/Import/RunClientMethod/Import/Method/Run Client Method Action.xml b/Import/RunClientMethod/Import/Method/Run Client Method Action.xml index b2e24bc..94eda54 100644 --- a/Import/RunClientMethod/Import/Method/Run Client Method Action.xml +++ b/Import/RunClientMethod/Import/Method/Run Client Method Action.xml @@ -33,4 +33,4 @@ if (typeof result == "object" && !Array.isArray(result)) { JavaScript labs_RunClientMethodAction - + \ No newline at end of file diff --git a/Import/imports.mf b/Import/imports.mf index e9351b1..a96d132 100644 --- a/Import/imports.mf +++ b/Import/imports.mf @@ -1,3 +1,4 @@ + \ No newline at end of file diff --git a/Import/test/Import/Method/test client method action.xml b/Import/test/Import/Method/test client method action.xml new file mode 100644 index 0000000..40e0020 --- /dev/null +++ b/Import/test/Import/Method/test client method action.xml @@ -0,0 +1,18 @@ + + + client method for testing "Run Client Method" action in method editor + 2618D6F5A90949BAA7E920D1B04C7EE1 + + JavaScript + test client method action + + \ No newline at end of file diff --git a/Import/test/Import/Variable/Test Variable.xml b/Import/test/Import/Variable/Test Variable.xml new file mode 100644 index 0000000..3ba2d96 --- /dev/null +++ b/Import/test/Import/Variable/Test Variable.xml @@ -0,0 +1,6 @@ + + + Test Complete + Test Variable + + \ No newline at end of file diff --git a/README.md b/README.md index 5d0564c..3b82158 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ 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. @@ -13,8 +14,9 @@ Release | Notes 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 @@ -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 @@ -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. @@ -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.