173
Views
7
Comments
Solved
DatePicker not working properly
Question

I'm trying to use the DatePicker from OutSystems, but it's not working properly.

I'm setting the OptionalConfig InitialDate with a value, but the DatePicker ignores the information and the input appears as blank.

I also use it on a list, and if I remove an item from the list all the DatePickers from the items above change the value to 20/02/2020.

After removing the first one:


Does anyone know a workaround?

2020-11-11 22-46-19
Thiago Andrade
Solution

@Sonali Verma thanks for the help, but this topic is for traditional web, I'm using reactive. The problem was solved, it was an old version of the OutSystems UI. The new version solved this bug.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Thiago,

Since the cell is bound to a variable, it takes the value of that variable. So if you need it to be a certain date, you need to change the bound variable, using the InitialDate won't work.

As for the dates reverting to 20/02/2022, that seems a programming error. You should debug the line removal code and see what it does to the list underlying the data.

2020-11-11 22-46-19
Thiago Andrade

Yes, I tried to change the variable value before, but didn't work either.

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Well, I'm assuming a programming error somewhere in your code, as this is a fairly common scenario, that should work.

2020-11-11 22-46-19
Thiago Andrade

No, the code is fine. I think that we have an older version on ther server, because in my personal enviroment it works...

Tks for the help

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Good thing it works on your PE, at least that should narrow down where the problem lies.

UserImage.jpg
Sonali Verma

Hi,

@Thiago Andrade

You can follow this " https://www.outsystems.com/forums/discussion/66598/date-picker-problem/ ".

Thanks,

Sonali Verma

2020-11-11 22-46-19
Thiago Andrade
Solution

@Sonali Verma thanks for the help, but this topic is for traditional web, I'm using reactive. The problem was solved, it was an old version of the OutSystems UI. The new version solved this bug.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.