Description
Address element in Composer Solution (form) is no longer working. When it was still working, address could be picked up automatically and map could be displayed on the form (if available).
Applies to
Composer, Workflow
Cause
Google released an upgrade for its Goggle Map JavaScripts APIs from version 2 (v2) to version 3 (v3). As a result, APIs v2 no longer works properly with Winshuttle Forms.
Solution
A small change must be made in the util.js and frmcommon.js files to make Google APIs work again. These files are located on the server machine where Workflow/Central is installed.
-
Go to SharePoint Server machine where Workflow is installed.
-
Navigate to “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\<<hive>>\TEMPLATE\LAYOUTS\js\rt”
Note: hives can be 14, 15, 16 according to SharePoint version and changes has to be made into all hive/s which is/are present. -
frmCommon.js
-
Take the backup of “frmCommon.js” file.
-
Edit file frmCommon.js and Search “loadGoogleAPI” function and edit under this function.
-
Variable "gMapUrl" should be: var gMapUrl = 'https://maps.googleapis.com/maps/api/js?libraries=places';
-
Save the changes and close the file.
-
Perform above steps for all the hives if applicable.
-
-
Navigate to “C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\<<hive>>\TEMPLATE\LAYOUTS”
Note: hives can be 14, 15, 16 according to SharePoint version and changes has to be made into all hive/s which is/are present. -
Util.js
-
Take the backup of “Util.js” file.
-
Edit file “util.js" and search function Set()
-
Remove below line from the existing code:
function Set() {
this.keys = [];
} -
Add below line at same location from where the above code was removed: Object.defineProperty(window, 'Set', {value: function(){ this.keys = []; }, configurable: true});
-
Save the changes and close file.
-
Perform above steps for all the hives if applicable.
-
-
Perform an IISRESET.
-
Perform the above steps on all the Web Front Ends.
-
Clear Browser cache.
Comments
0 comments
Please sign in to leave a comment.