Skip to Content
avatar image
Former Member

Unable to set focus date to specific date in sap ui unified Calendar

Hi all,

I am unable to set focus to my calendar to a particular date,

this is my code

default focus date is current date and I used displayDate, focusDate, focus individually to so give me some suggetions.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    avatar image
    Former Member
    Mar 03, 2017 at 03:01 PM

    Hi Karthik,

    focusDate is method of Calender and there is no property associated with it.

    So remove the property and add like

    new Calender({}).focusDate(dp);

    and it is better to create date like

    var dp = "2014/03/26"; 
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 04, 2017 at 04:54 AM

    Hi Sudheer,

    Thanks for your reply.

    Add comment
    10|10000 characters needed characters exceeded