cancel
Showing results for 
Search instead for 
Did you mean: 

Set Datepicker MaxDate at render

former_member189162
Participant
0 Kudos

Hi Experts,

Can anyone give me some guidance on the best way to set the MaxDate value for a Datepicker that is added to a table as part of a model.

I need to set the MaxDate for an end date input field based on an employee type we get from a different function.

The xml, used for the datepicker in the table column is:

<DatePicker valueFormat="MM/dd/yyyy"

  displayFormat="MM/dd/yyyy"

  value="{path: 'cart>ValidTo',

            type: 'sap.ui.model.type.Date',

            formatOptions: {pattern: 'MM/dd/yyyy'}}"/>

Thanks!

-Kevin

Accepted Solutions (1)

Accepted Solutions (1)

former_member189162
Participant
0 Kudos

Hey All,

Nevermind, I found that I can use: modelContextChange.

Thanks!

-Kevin

Answers (0)