cancel
Showing results for 
Search instead for 
Did you mean: 

How add DatePicker component from UI5 to Lumira?

former_member594740
Participant
0 Kudos
319

Hello!

I want to add DatePicker component from UI5 to Lumira components into my project.

How can i do it?

I read this topic https://blogs.sap.com/2018/06/12/using-all-sapui5-controls-in-your-design-studio-lumira-application/ , but did't understand how save new component for using into Lumira.

former_member594740
Participant
0 Kudos

kgssss drtert

Accepted Solutions (0)

Answers (2)

Answers (2)

You are right, the Date Field component does not expose the format properties. It simply follows the the locale of the user (which you can override with LANGUAGE=<something> URL parameter.

If you urgently need the feature, I recommend to wrap sap.m.DatePicker into an own SDK component - and not to try using XMLView.

The Samples and Templates ZIP contains serveral sample how to wrap an SAPUI5 controls as SDK component and this is also described in Component Developer Guide. You might also find a fitting component in the SCN Community.

former_member594740
Participant
0 Kudos

Lumira don't show new component from Extension. Сould't you advise something?

https://answers.sap.com/questions/12993316/lumira-dont-show-new-components-from-extensoin.html

0 Kudos

Why don't you simply use the "Date Field" component - which essentially is a wrapping of sap.m.DatePicker SAPUI5 control with connection to Lumira Scripting.

former_member594740
Participant
0 Kudos

I would like to set property displayFormat="MM/yyyy" and valueFormat="MM/yyyy". I don't see this props on right menu (img).
Can i do that with "Date Field" or do i need to use "sap.m.DatePicker"?