Chain of Command now supports the more scenarios for the extensions on forms:
Now you can wrap the methods on forms, Forms data sources, Datafields and on form control methods.
- Forms
- Form Data Sources
- Form Controls
- fields in data sources
Below is the complete example of Form Data source and just a code snippet for the rest. In below example we are updating the ratingmodel based on our custom logic that is global variable on the form.
Note: use element.FormToExtendVariable to access the form variables and datasources
Use element.FormToExtendMethod() to call the form methods
- [ExtensionOf(FormStr(FormName))] // for form extension
- [ExtensionOf(FormControlStr(FormName,FormControl))] // for form control method extension
- [ExtensionOf(FormDataFieldStr(FormName,FormDataSource,DataField))] // for form datasource method extension
- [ExtensionOf(FormDataSource(FormName,FormDataSource) // for form data source extension