This project contains sample code that demonstrates how to call a datepicker dialog from method code.
Release | Notes |
---|---|
v1.0.2 | Updated Usage for v12 |
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. |
Project | Aras |
---|---|
v1.0.2 | 11.0+, 12.0+ |
v1.0.1 | 11.0 SP7+, 11.0 SP12+, 11.0 SP15 |
v1.0.0 | 11.0 SP7 |
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.
Always back up your code tree and database before applying an import package or code tree patch!
- Aras Innovator installed (see "Supported Aras Versions" above)
- Aras Package Import tool
- CallDateDialog 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 the package name in the TargetRelease field.
- Optional: Enter a description in the Description field.
- Enter the path to your local
..\CallDateDialog\Import\imports.mf
file in the Manifest File field. - Select CallDateDialog 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 try out the Call Date Dialog action.
- Log in to Aras as admin.
- From the User menu (upper right corner), select Actions > Call Date Dialog.
- In v11, use the Actions menu to choose the Call Date Dialog Action.
- When the datepicker dialog appears, choose a date.
The dialog will be dismissed and a browser alert dialog will appear, displaying the selected date value.
- 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 araslabs@aras.com.
Original method code written by Rob McAveney for Aras Labs. @rmcaveney
Documented and published by Eli Donahue for Aras Labs. @EliJDonahue
Aras Labs projects are published to Github under the MIT license. See the LICENSE file for license rights and limitations.