16 Replies Latest reply: Dec 9, 2015 7:46 AM by Brijesh Maurya RSS

    Disable Dates in Qwidget Date picker

    Kumar Pramod

      Hi all,

       

      jagan

      hic

       

       

       

      I am Using date picker in my app,

       

      I tried to disable dates using min date and max date, but dates are not disabling.

       

      I used below expression:

      <wi-datepicker bind-qs-var="vEndDate" popup="true" default="vMaxDate" min-date="vMinDate" max-date="vMaxDate">

      </wi-datepicker>

       

      variables and load script:

      CalendarTemp:

      LOAD

        Max(CanonicalDate) AS DateMax,

        Min(CanonicalDate) AS DateMin

      RESIDENT CalendarMaster;

       

       

      LET vMaxDate = FieldValue('DateMax', 1);

      LET vMinDate = FieldValue('DateMin', 1) -1; // Needed to control the minum date autogenerated in Sales table is included in the MasterCalendar

       

       

      DROP TABLE CalendarTemp;

       

       

      let vStartDate = Date('$(vMinDate)');

      let vEndDate = Date('$(vMaxDate)');

       

       

      let vYesterday = date(vMaxDate)-1;

       

       

      Thanks,

      Pramod