|
| 1 | +# Call Date Dialog |
| 2 | + |
| 3 | +This project contains sample code that demonstrates how to call a datepicker dialog from method code. |
| 4 | + |
| 5 | +## Project Details |
| 6 | + |
| 7 | +See [TESTSTATUS file](./TESTSTATUS.md) for latest testing information. |
| 8 | + |
| 9 | +#### Built Using: |
| 10 | +Aras 11.0 SP7 |
| 11 | + |
| 12 | +#### Versions Tested: |
| 13 | +Aras 11.0 SP7 |
| 14 | + |
| 15 | +#### Browsers Tested: |
| 16 | +Internet Explorer 11, Firefox 38 ESR, Chrome |
| 17 | + |
| 18 | +## How It Works |
| 19 | + |
| 20 | +The project's import package contains a Javascript method - labs_CallDateDialog. This method calls a datepicker dialog and then executes a custom callback function with the selected date as a parameter. The callback function in this sample code simply displays the date parameter in a browser alert, but the same approach could be used to perform some other business logic with the selected date. |
| 21 | + |
| 22 | +## Installation |
| 23 | + |
| 24 | +#### Important! |
| 25 | +**Always back up your code tree and database before applying an import package or code tree patch!** |
| 26 | + |
| 27 | +### Pre-requisites |
| 28 | + |
| 29 | +1. Aras Innovator installed (version 11.0 SPx preferred) |
| 30 | +2. Aras Package Import tool |
| 31 | +3. CallDateDialog import package |
| 32 | + |
| 33 | +### Install Steps |
| 34 | + |
| 35 | +1. Backup your database and store the BAK file in a safe place. |
| 36 | +2. Open up the Aras Package Import tool. |
| 37 | +3. Enter your login credentials and click **Login** |
| 38 | + * _Note: You must login as root for the package import to succeed!_ |
| 39 | +4. Enter the package name in the TargetRelease field. |
| 40 | + * Optional: Enter a description in the Description field. |
| 41 | +5. Enter the path to your local `..\CallDateDialog\Import\imports.mf` file in the Manifest File field. |
| 42 | +6. Select **CallDateDialog** in the Available for Import field. |
| 43 | +7. Select Type = **Merge** and Mode = **Thorough Mode**. |
| 44 | +8. Click **Import** in the top left corner. |
| 45 | +9. Close the Aras Package Import tool. |
| 46 | + |
| 47 | +You are now ready to login to Aras and try out the Call Date Dialog action. |
| 48 | + |
| 49 | +## Usage |
| 50 | + |
| 51 | +1. Log in to Aras as admin. |
| 52 | +2. In the main menu, select **Actions > Call Date Dialog**. |
| 53 | +3. When the datepicker dialog appears, choose a date. |
| 54 | + |
| 55 | +The dialog will be dismissed and a browser alert dialog will appear, displaying the selected date value. |
| 56 | + |
| 57 | +## Contributing |
| 58 | + |
| 59 | +1. Fork it! |
| 60 | +2. Create your feature branch: `git checkout -b my-new-feature` |
| 61 | +3. Commit your changes: `git commit -am 'Add some feature'` |
| 62 | +4. Push to the branch: `git push origin my-new-feature` |
| 63 | +5. Submit a pull request |
| 64 | + |
| 65 | +For more information on contributing to this project, another Aras Labs project, or any Aras Community project, shoot us an email at araslabs@aras.com. |
| 66 | + |
| 67 | +## Credits |
| 68 | + |
| 69 | +Original method code written by Rob McAveney for Aras Labs. @rmcaveney |
| 70 | + |
| 71 | +Documented and published by Eli Donahue for Aras Labs. @EliJDonahue |
| 72 | + |
| 73 | +## License |
| 74 | + |
| 75 | +Aras Labs projects are published to Github under the MIT license. See the [LICENSE file](./LICENSE.md) for license rights and limitations. |
0 commit comments