Method and Event Changes

Many of the methods and events used to implement code customizations have been changed.

Old Function or Event

New Function or Event

Export

To customize the Export function, override the export button click event handler method.

OnApplicationEvent

If you are overriding OnApplicationEvent in order to customize SaveData or AddData for an Add or Save button, then add a button click event handler.

If you are overriding OnApplicationEvent in order to handle a custom event for a custom button, then add a button click event handler for the custom button.

OnDataBound

If you are handling the OnDataBound event to filter or preselect a value, then override the CreateWhereClause() method.

OnDataChanged

To perform a ustom action when the DataChanged event occurs, then override the LoadData() method.

PostCommitTransaction

To perform a custom action after the database save and commit occurs, then override the CommitTransaction() function, call the base CommitTransaction() and then perform your custom actions.

PostGetUIData

To perform a custom action after reading the data from the UI and before saving data to the database, then override the SaveData() method.

PostRunQuery

To perform a custom action after a query has been executed, then override the LoadData() method.

PostSetUIData

To perform a custom action after the UI data is set, then override the DataBind() method or the LoadData() method.

PreGetUIData

To perform a custom action after getting data from UI, then override the SaveData() method.

PreRunQuery

To add an additional WHERE clause to a query or add an extra filter object to customize a query, then override the CreateWhereClause() method.

PreSelectDropdownFilter

To customize drop down filter items, then override the CreateWhereClause() and the Populate Filter methods.

PreSetUIData

To customize data after a query has run and before the UI is set, then override the DataBind() method.

ServerValidate

To perform custom validation, override the Validate() function.

ValidateCheckSum

To suppress concurrency validation, override the SaveData() method.

ValidateData

To customize data validation, override the Validate() method.

Migration effects

The Migration Wizard will attempt to move your code customizations to the new structure.  However, some code customizations cannot be automatically migrated and will be commented out in the source code files with suggestions on applicable changes you can make.

What you should do

After migration, apply any changes you may have made to the original code customization files to the new code customization files.

See Also

Version 4.0 Application Migration