
Problem
Appway 5.2 was shipped with version 1.7.1 of the jQuery Core JavaScript library. With Appway 5.3 we will upgrade the built-in jQuery Core library to version 1.9.1. jQuery 1.9 removes or modifies several APIs that behaved inconsistently or inefficiently in the past. This may have an impact on your solution if you use screen components or custom JavaScript code relying on jQuery 1.7 functions and features. If this is the case, you may run into JavaScript errors in the workspace of your solutions.

Solution

I suggest to set this configuration property in the "Content Configuration" section. It will trigger the inclusion of the jQuery Migrate plugin in the workspace. As a result, screen components and custom JavaScript code relying on jQuery 1.7 functions and features should continue to work. The default value of the configuration property is "1.9", so the jQuery Migrate plugin is not included by default.
The jQuery Core 1.9 upgrade guide contains information about how to migrate existing jQuery code to version 1.9, and which functions and features the jQuery Migrate plugin can restore and which not.
We highly recommend to upgrade all custom JavaScript code to jQuery 1.9. If the JavaScript code is part of the solution, use global search to find all locations where jQuery 1.7 code is executed.
Example:
Search for ".live(" to find invocations of the function "live". Then follow the upgrade guide and rewrite the JavaScript code so that it is jQuery 1.9 compliant. According to the documentation, the function "live" can be replaced with "on". Attention: The way the function is invoked has changed! The function is now invoked on the document object and the number and order of parameters has changed.
Here is a separate list of all features deprecated in jQuery 1.7 and removed in jQuery 1.9.
IMPORTANT
If you have running process instances on your live system, fixing the jQuery code in your solution only has an impact on newly started process instances (unless you upgrade all process instances). You should therefore consider to enable the inclusion of the jQuery Migrate plugin until all process instances are running on the fixed versions of your business objects. There is no tool support in the Appway Studio for fixing such issues in older (non-head) versions of business objects. If you must patch older versions of business objects in the repository, please consult an Appway support engineer for further assistance.

Comments (0)