@@ -341,7 +341,12 @@ CLASS z2ui6_cl_app_view1_js IMPLEMENTATION.
341341 ` "sap/ushell/Container"` && | \n| &&
342342 ` ], async (ushellContainer) => {` && | \n| &&
343343 ` // z2ui5.oCrossAppNavigator = await ushellContainer.getServiceAsync("CrossApplicationNavigation");` && | \n| &&
344- ` z2ui5.oCrossAppNavigator = ushellContainer.getService("CrossApplicationNavigation");` && | \n| &&
344+ ` if (ushellContainer){` && | \n| &&
345+ ` z2ui5.oCrossAppNavigator = ushellContainer.getService("CrossApplicationNavigation");` && | \n| &&
346+ ` } else {` && | \n| &&
347+ ` // fallback needed for UI5 version < 1.120` && | \n| &&
348+ ` z2ui5.oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");` && | \n| &&
349+ ` }` && | \n| &&
345350 ` z2ui5.oCrossAppNavigator.backToPreviousApp();` && | \n| &&
346351 ` });` && | \n| &&
347352 ` break;` && | \n| &&
@@ -351,7 +356,12 @@ CLASS z2ui6_cl_app_view1_js IMPLEMENTATION.
351356 ` "sap/ushell/Container"` && | \n| &&
352357 ` ], async (ushellContainer) => {` && | \n| &&
353358 ` // z2ui5.oCrossAppNavigator = await ushellContainer.getServiceAsync("CrossApplicationNavigation");` && | \n| &&
354- ` z2ui5.oCrossAppNavigator = ushellContainer.getService("CrossApplicationNavigation");` && | \n| &&
359+ ` if (ushellContainer){` && | \n| &&
360+ ` z2ui5.oCrossAppNavigator = ushellContainer.getService("CrossApplicationNavigation");` && | \n| &&
361+ ` } else {` && | \n| &&
362+ ` // fallback needed for UI5 version < 1.120` && | \n| &&
363+ ` z2ui5.oCrossAppNavigator = sap.ushell.Container.getService("CrossApplicationNavigation");` && | \n| &&
364+ ` }` && | \n| &&
355365 ` const hash = (z2ui5.oCrossAppNavigator.hrefForExternal({` && | \n| &&
356366 ` target: z2ui5.args[1],` && | \n| &&
357367 ` params: z2ui5.args[2]` && | \n| &&
@@ -408,6 +418,8 @@ CLASS z2ui6_cl_app_view1_js IMPLEMENTATION.
408418 ` break;` && | \n| &&
409419 ` case 'URLHELPER':` && | \n| &&
410420 ` var URLHelper = mobileLibrary.URLHelper;` && | \n| &&
421+ | \n| .
422+ result = result &&
411423 ` var params = args[2];` && | \n| &&
412424 ` switch (args[1]) {` && | \n| &&
413425 ` case 'REDIRECT':` && | \n| &&
@@ -418,8 +430,6 @@ CLASS z2ui6_cl_app_view1_js IMPLEMENTATION.
418430 ` break;` && | \n| &&
419431 ` case 'TRIGGER_SMS':` && | \n| &&
420432 ` URLHelper.triggerSms(params);` && | \n| &&
421- | \n| .
422- result = result &&
423433 ` break;` && | \n| &&
424434 ` case 'TRIGGER_TEL':` && | \n| &&
425435 ` URLHelper.triggerTel(params);` && | \n| &&
0 commit comments