Skip to Content
author's profile photo Former Member
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

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on 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

  • author's profile photo Former Member
    Former Member
    Posted on Mar 04, 2017 at 04:54 AM

    Hi Sudheer,

    Thanks for your reply.

    Add comment
    10|10000 characters needed characters exceeded