cancel
Showing results for 
Search instead for 
Did you mean: 

SAP UI5 Calendar problem

Former Member
0 Kudos

Hi,

I am new in SAP UI5 ,and want to make a calendar which will be in header of page and showing 5 days (with date) of a week only(excluding Saturday & Sunday).

The condition is that only current date should be enabled and also should be in the middle of the 5 days always.

I have problem in disable of other 4 days ,exclusion of (Saturday  & Sunday) and middle of enabled day.

Regards,

Narendra

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kimmo,

It helped   me very much  in coding part......Thanks.

Regards

Narendra

former_member189945
Contributor
0 Kudos

Hi Narendra,

Great that it helped you. If you like, you can also mark the answer as helpful or correct so that helpful answers are more easily distinquished in the discussion thread.

Regards,

Kimmo

former_member189945
Contributor
0 Kudos

Hi,

You can create a new control which displays the week days. I would start by adding five controls (one for each day) in a HBox. Then using a DateFormat you could display days in the control. Weekend could be skipped, e.g, by checking whether currentDate.getDate()-1 is Saturday or Sunday

Here's a jsbin example with which you could start developing:

http://jsbin.com/zatenuromure/3/edit

Regards,

Kimmo