ui5-library

onAfterRendering hook for smartform in UI5

|▌冷眼眸甩不掉的悲伤 提交于 2020-01-07 02:23:26
问题 In my app i have an XML view that consists of a smartform. I have a need to access an input element(via sap.ui.getCore().byId() ) that becomes available after the smartform is parsed and rendered. The onAfterRendering in the controller for my view triggers as soon as the view is rendered(i get all my non-smartform elements like title etc.), but before the smartform is parsed and rendered. A rudimentary test via an alert also proved this visually. Is there any event that is triggered after the

onAfterRendering hook for smartform in UI5

旧巷老猫 提交于 2020-01-07 02:23:08
问题 In my app i have an XML view that consists of a smartform. I have a need to access an input element(via sap.ui.getCore().byId() ) that becomes available after the smartform is parsed and rendered. The onAfterRendering in the controller for my view triggers as soon as the view is rendered(i get all my non-smartform elements like title etc.), but before the smartform is parsed and rendered. A rudimentary test via an alert also proved this visually. Is there any event that is triggered after the

UsingjQuery.sap.includeScript().then() in HCP Firori Launchpad

被刻印的时光 ゝ 提交于 2019-12-29 09:49:26
问题 I'm trying to include googlemaps in sapui5 jQuery.sap.includeScript({ url: "https://maps.googleapis.com/maps/api/js?key=XXXX", promisify: true }).then(function() { ... } ) This Promise works fine when I run in hanatrial webide, But when I deploy it to hana cloud platform it is not working. The error message it gives me is : InterceptService.js:1 Uncaught (in promise) TypeError: u.indexOf is not a function(…) sap.ushell.cloudServices.interceptor.InterceptService._invokeFilters @

UsingjQuery.sap.includeScript().then() in HCP Firori Launchpad

允我心安 提交于 2019-11-29 17:28:38
I'm trying to include googlemaps in sapui5 jQuery.sap.includeScript({ url: "https://maps.googleapis.com/maps/api/js?key=XXXX", promisify: true }).then(function() { ... } ) This Promise works fine when I run in hanatrial webide, But when I deploy it to hana cloud platform it is not working. The error message it gives me is : InterceptService.js:1 Uncaught (in promise) TypeError: u.indexOf is not a function(…) sap.ushell.cloudServices.interceptor.InterceptService._invokeFilters @ InterceptService.js:1 jQuery.sap.includeScript @ InterceptService.js:1 onAfterRendering @ Worklist.controller.js:37