Hello,
I am working on a project using the month picker widget. I followed this documentation but I am not sure how to bind the value to a attribute as the output is of monthyear structure datatype where as my attribute is of date datatype.
https://success.outsystems.com/Documentation/11/Developing_an_Application/Design_UI/Patterns/Using_Mobile_and_Reactive_Patterns/Interaction/Month_Picker
Any suggestions?
Hello low,
I understand that the parameter you require is month and year time, you could change it to Date type, it is the easiest solution, now if you can't you will have to assign it manually by parsing the widget value.
So that you understand me better, you could share an example with your case and I will send you the solution.
Regards!
Thank you for your suggestion! Just to clarify. The selectedmonth output variable is of monthyear structure datatype, am I able to just change that datatype to month?
If not how do I go about parsing the widget value? Im not sure how to go about doing that. Thank you!
Hello Low Ding En,
"how to bind the value to a attribute as the output is of monthyear structure datatype where as my attribute is of date datatype. "
You can able to create a new date based on month and the year
"The selectedmonth output variable is of monthyear structure datatype, am I able to just change that datatype to month?"
You should not change the datatype for the event handler input. If you change that, then you will not get the correct value of month picker
you can do the change whatever you want in the event handler as the attached screenshot
Kindly refer the attached url and oml
https://personal-zwqyrq9s.outsystemscloud.com/Pract/monthPicker?_ts=638107568419252537
Hope this helps!
Regards,
Ellakkiya.S