Hi,
I'm getting confused by the datepicker and the documentation of it. The documentation tutorial doesn't show how to do it with 2 buttons and how to set the action variables on the datepicker itself (https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Patterns/Using_Mobile_and_Reactive_Patterns/Interaction/Date_Picker/How_to_use_the_Date_Picker_UI_Pattern).
My problem is that I cannot find a way to get the EndDate input parameter filled. It will always fill the StartDate input parameter if the input parameter is the same given parameter. I also don't understand why there is a End Date input parameter as there can only be one date selected by the date picker.
Can someone help me out? I want the StartDate to be filled by the first button and the second button should fill the EndDate.
I've added an example oml.
Thanks in advance.
Kind regards,
Bo
Can you just do this
You will always have these two variables on the date picker
It is giving you null maybe because you are not selecting any date!
Or is because the value comes from the variables on the event and you cannot change that, you can but you will get any selected date, look at the image above
Try
https://marcio-carvalho4.outsystemscloud.com/DatePickerTest/Home?_ts=637774208404782099
I think this will do the trick, you don't need it. This way you can use just one input to select a start and end date.
Hi Marcio,
Thanks for your quick response. You were quicker than me hahaha. Anyway, do you know why I cannot change the given input parameter to a different parameter? Atleast in my project it doesn't work. If I change the given parameter from StartDate to a local variable called DateSelector. It returns a null date value.
Thank you, I can see what I did wrong and yes I did not select any date from the event. That was my mistake. Thanks for pointing it out! :)
Also the reason why I got confused is because the event parameter is called StartDate which is the same name as my input parameter.
Regards,
I already found out why there is a end date parameter. It's because if you set SelectInterval it uses the EndDate parameter. But I'm still confused why changing the input parameter doesn't work. I changed the input parameter from StartDate to a local variable called DateSelector.