1697
Views
4
Comments
Solved
DatePicker in Reactive

Hello,

For 2 days I'm trying to fix this issue without any luck.

So I'm using a datePicker in Reactive application. I need the date to be formatted as "DD/MM/YYYY" which I managed to do setting an input type to "Text".

However on clicking the "Save button" date formatting changes automatically to this and I get validation error:

I tried to change date format in the service centre but it doesn't work, widget behaves the same.

If I use input type "Date" all works well but the displayed format is wrong.

Any help is appreciated, thank you. 

2020-09-04 05-21-16
Selva bharath
Solution

hai  Mark Bayles 

I Have Share The DateAndTime OML Sheet 

Procedure Your Local variable And Input Wights Both Text Data Type

In The Date picker Action Start Date Input parameter Data Type Is Date And Time 

in Logic Flow Assign The  Start Date to Local Variable 

 


Hope This Will Solve The Problem 

Regards 

S.Selva


DateAndTime.oml
2014-09-04 01-10-12
Mark Bayles

Selva bharath wrote:

hai  Mark Bayles 

I Have Share The DateAndTime OML Sheet 

Procedure Your Local variable And Input Wights Both Text Data Type

In The Date picker Action Start Date Input parameter Data Type Is Date And Time 

in Logic Flow Assign The  Start Date to Local Variable 

 


Hope This Will Solve The Problem 

Regards 

S.Selva


Thank you, Selva, your answer helped me to solve it. 

For people who might have the same issue: in SaveDetail action convert this text variable to date and assign its value to the entity attribute (variable) after form validation. 

 

2020-09-04 05-21-16
Selva bharath
Solution

hai  Mark Bayles 

I Have Share The DateAndTime OML Sheet 

Procedure Your Local variable And Input Wights Both Text Data Type

In The Date picker Action Start Date Input parameter Data Type Is Date And Time 

in Logic Flow Assign The  Start Date to Local Variable 

 


Hope This Will Solve The Problem 

Regards 

S.Selva


DateAndTime.oml
2014-09-04 01-10-12
Mark Bayles

Selva bharath wrote:

hai  Mark Bayles 

I Have Share The DateAndTime OML Sheet 

Procedure Your Local variable And Input Wights Both Text Data Type

In The Date picker Action Start Date Input parameter Data Type Is Date And Time 

in Logic Flow Assign The  Start Date to Local Variable 

 


Hope This Will Solve The Problem 

Regards 

S.Selva


Thank you, Selva, your answer helped me to solve it. 

For people who might have the same issue: in SaveDetail action convert this text variable to date and assign its value to the entity attribute (variable) after form validation. 

 

2020-09-04 05-21-16
Selva bharath

Hai Mark Bayles  

Always Welcome

Happy Journey In Outsystems   

Regards

S.Selva

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