Skip to Content
0

SAPUI5 Datepicker not working properly at Sap CP

Dec 14, 2017 at 08:45 PM

88

avatar image
Former Member

Hi experts,

When we use the datepicker control in a mobile device we have the problem that the year or month are unselectable when we try to change directly to other year o month. It is a sapui5 app in Sap Cloud platform deployed to a Portal Service ( Fiori Launchpad ).

The control doesnt work properly either in desktops.

When we try the same app locally it works just fine.

Is there a extra config for the app to wokr properly in SAP CP. ?

The code for the datepicker is as follows.

<DatePicker id="dateDesde" valueFormat="yyyyMMdd" displayFormat="dd/MM/yyyy" placeholder="Ingrese la Fecha de inicio" change="handleChange"/>

thanks in advance

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Richard Zhao
Dec 15, 2017 at 03:00 AM
0

Hello Carlos. Could you check whether the UI5 library in the cloud is consistent with your local environment, please?

<script id="sap-ui-bootstrap" src="https://sapui5.hana.ondemand.com/1.36.9/resources/sap-ui-core.js">
</script>
Share
10 |10000 characters needed characters left characters exceeded
Ivan Mirisola
Dec 22, 2017 at 01:37 PM
0

Hi Carlos,

Which DatePicker are you using? The one from sap.m, sap.ui.commons or sap.ca.ui?

Please check the samples for the correct usage of DatePicker as it works on both desktops and mobile browsers.

If you download one of the samples for DatePicker and it still doens't work, perhaps it is an issue related to cache. Please check the console logs (CTRL+SHIFT+I) of your browser to understand what error the browser is facing. Also check the browser compatibility for SAPUI5 - perhaps you are using an old browser that is not supported.

Regards,
Ivan

Share
10 |10000 characters needed characters left characters exceeded