This solution depends on package "Property Advanced Validation" (PAV)
Purpose:
-
Field on forms of an ItemType may need to be disabled or enabled for defined "Stages” only.
-
Field on forms of an ItemType may need to be shown or hidden for defined "Stages” only.
-
2 generic "Client Methods" (ffr_FormField_ApplyRenderRules, ffr_FormField_ApplyRenderRules_p) are provided to read the rules of the ItemType specific configurations to execute the rendering rules during "onLoad” of the Form.
-
Form Field Rendering rules must be set to status "Active" (life cycle) to take effect.
Features used from PEV:
- "Stages" are defined as one or more possible "Life Cycle States" of an item.
Similar to and improved functionality from community project "Life Cycle Based Props and Fields"
Version | Comments |
---|---|
v1.0.0 | Initial version. (replaces community project "Life Cycle Based Props and Fields"); |
Project | Aras |
---|---|
v1.0.0 | 11.0 SP15 |
- Aras Import Package Tool
- Downloaded Package
- No code tree changes
- Aras Innovator Install (Supported Service Packs listed above)
- Property Advanced Validation (PAV) package
Important: Always back up your code tree and database before applying an import package or code tree patch!
-
Use the package import utility in your CD image to import the packages in this module.
-
Log on as root and use options Merge and Thorough for all steps
- Import the
imports.mf
file from the Imports folder.
- Import the
Prerequisite: Set up Stage definitions according to the PAV Usage.
- Log in as admin and expand to Administration > Configuration
- Open Form Field Rendering Rules. Create a New Item.
- Select the existing ItemType you wish to apply the rules to.
- Select the stage definition created previously.
- Select an Owner.
- Add the fields to be controlled.
- Select the form to be controlled.
- Select the field(s)
- Set the stages to validate at (multi-select) or the All Stages flag
- For each field select the appropriate combination of the below:
- Set visible or hidden and if the rule is applied to an Identity
- Set enabled or disabled and if the rule is applied to an Identity
- Save and Lock the record.
- Promote the record to Active. (If you do not do this, the rules will not be in force!)
- For the ItemType(s) selected above, go to any Form(s) used and set Form Events for the following:
- ffr_FormField_ApplyRenderRules_p – OnFormPopulated
- ffr_FormField_ApplyRenderRules – OnLoad
- Save/Unlock/Close the Form(s).
- Test Validation.
- Checks will run when a form is loaded.
- 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 Aras community project written by Rolf Laudenbach (rlaudenbach@aras.com) at Aras Corp.
Aras Labs projects are published to Github under the MIT license. See the LICENSE file for license rights and limitations.