This article summarizes the deprecation and removal of features with Appway 2022.1.
When upgrading to Appway 2022.1 this means:
- Removed features – Issues related to the removal of features must be addressed before upgrading to Appway 2022.1.
- Deprecated features – Issues related to the deprecation of features do not require any action before upgrading to Appway 2022.1. Deprecated features will continue to work as normal in Appway 2022.1, as we plan to remove them in minimum two years since the date of the release that deprecates the item (therefore after 2024) (see Appway Platform release dates). This time frame gives you time to address the necessary changes by following the recommended actions. See the Deprecation section below for more details.
- Deprecation and removal principles at Appway: Feature Deprecation and Removal in the System Administration: Upgrade Principles article.
- Feature removal and deprecation in past Appway versions:
The following tables list features removed with Appway 2022.1 and the recommended actions to replace them. Please ensure your Solutions do not use any of these features before upgrading to Appway 2022.1.
| Removed Feature | More Information |
|---|
| Conditional Cast Control | The Conditional Cast Control, deprecated in Appway 10, is now removed. Removed Controls, if still existing in your Solution, are shown in red and struck-through. |
| Removed Feature | More Information |
|---|
| JDBCDrivers Extension | The JDBCDrivers Extension, deprecated in Appway 10, is now removed. The recommended way of including database drivers in an Appway installation is to add the drivers to the lib directory of the Application Server. Moreover, the drivers provided by the JDBCDrivers Extension were outdated. |
The following tables list features deprecated in Appway 2022.1 and the recommended actions to replace them.
Features deprecated in Appway 2022.1 do not require any immediate action before upgrading to Appway 2022.1. These features will continue to work as normal in Appway 2022.1, as they will be removed in minimum two years since the date of the release that deprecates the item Deprecated features will continue to work as normal in Appway 2022.1, as we plan to remove them in minimum two years since the date of the release that deprecates the itemDeprecated features will continue to work as normal in Appway 2022.1, as we plan to remove them in minimum two years since the date of the release that deprecates the item (therefore, after 2024) (see Platform release dates). Please, note that this does not change the deprecation/removal timeline already announced for the features included in the current document.
This time frame gives you plenty of time to address the necessary changes. However, we suggest that you start considering the recommended actions described for each deprecated item.
| Deprecated Item | Recommended Action | Why We Are Deprecating |
|---|
| Discussion feature | The Discussion feature in Appway Studio is mainly accessed from Solution Design > Discussion tab, but it can be reached from several Editors. In Appway 2022.1, there are no changes to this feature; however, you can already disable it by setting the nm.studio.discussion.enabled property to false (default is true). Starting from Appway 2022.2, the nm.studio.discussion.enabled property will be set to true by default, meaning that the Discussion feature will be read-only (user messages will be disabled, while automatic activity logs will still be kept). The feature will finally be removed according to our removal timeline (automatic activity logs will still be accessible from other points in Appway Studio). | The Discussion feature is seldom used. |
With Appway 2022.1, we are continuing to organize Script Language Functions into the corresponding namespaces. Consequently, we have introduced some new functions that replace previously available functions.
Consider the following information on function migration:
- To take advantage of the new namespaced functions, you can migrate occurrences of the deprecated functions using the Appway function
Migration:MigrateFunctions described in the dedicated section below. - For some functions, and where specified, automigration through the migration tool is not currently available.
| Deprecated Function | Recommended Action | Why We Are Deprecating |
|---|
MergePDFFiles | The migration tool described in the dedicated section allows you to migrate all occurrences to the new Pdf:Merge function (see details in our Script Function documentation). | PDF-related functions are being reorganized into the Pdf: namespace for easier access. |
PDFNumberOfPages | The migration tool described in the dedicated section allows you to migrate all occurrences to the new PDF:CountPages function (see details in our Script Function documentation). | PDF-related functions are being reorganized into the Pdf: namespace for easier access. |
To keep your Solution up to date and make sure it uses the recommended functions and methods, we strongly advise performing an automatic migration of functions and method calls. This is done through the Automigrator Tool described below:
- Execute
Migration:MigrateFunctions, and pass the Package ID as an argument, as the function executes migration on a per-Package basis.
Example: Migration:MigrateFunctions('ClientOnboarding') migrates all occurrences of deprecated functions in the Client Onboarding Package.
In detail, the migration function performs the following actions:
- The migration function finds all Business Objects using deprecated functions within the given Package.
Example – The Client Onboarding Package contains the Script Function Business Object "Test", which uses the deprecated USERROLES() function:
Function ClientOnboarding:Test(String $value) : Nothing Begin
USERROLES();
End
- The migration function replaces all occurrences of deprecated functions with the new namespaced functions; an uncommitted version of each Business Object with migrated code is created.
Example – The Script Function Business Object "Test" has been modified by the migration function to replace the deprecated function:
Function ClientOnboarding:Test(String $value) : Nothing Begin
User:CurrentUserListRoleIds();
End
- The migration function returns a list of Business Object IDs that have been migrated.
Example:
String[ClientOnboarding:Test]
- Based on the list of migrated Business Objects, review the changes to the Business Objects and commit them.