YearDatetimePicker - how to use the component

Hi, Yogesh. I found your components from different forums, related to select year from date . I already view your sample attach in the forum, but not sure what to do next. I am really2 newbie in the outsystems. Need your help here. Thanks

Capture1.PNG

Solution

Hey,

please check below attached attachment

1.create web block and take input widget, add variable which datatype is date

2.create action on input widget onchange

3.create event and add input to event as year(integer)

4.now drag drop event inside onchange action as shown and assign value to input as shown below


once this down you will get selected date's year on parent screen from web block

Thanks

YOgesh


Demoyear.oml

Solution

Its reactive application and component which you trying which is supported to traditional only

Thanks

Yogesh

Hey,

Good Morning,
Hope you are doing well.

As I check you want to integrate component in you application.

This component return only year from selected datetime.

To use follow instruction.

1.Download component and manage dependencies

2.Now you will able to see component inside Interface tab

3.You have to simply drag and drop webblock where you want to show datetimepicker

4.Once drag drop, webblock will ask to create handler. You have to select new action from dropdown of web block handler.


5.Once web block handler got created. handler action will have input variable, which value need to assign to your variable

..here I assign my year_2(local variable to label so refreshed )

Hope you understand.

If this work then please mark question as resolved.

Thanks

Yogesh

I dont see it in Interface Tab. Already manage dependencies

Hey

Did you checked this while manage dependancies

I have question, Are you doing traditional development?

Yogesh

I did ticked it, and i am not sure if im using traditional or not. The module is created by my lead, and i just use it


Capture2.PNG

Can you please provide me image like below

so I can understand which development you are doing,

Yogesh

Solution

Its reactive application and component which you trying which is supported to traditional only

Thanks

Yogesh

ouh okay, is there any other way? I tried find it in forge, but pop up message saying that it is not safe to install in my environment. Maybe due to not compatible

Solution

Hey,

please check below attached attachment

1.create web block and take input widget, add variable which datatype is date

2.create action on input widget onchange

3.create event and add input to event as year(integer)

4.now drag drop event inside onchange action as shown and assign value to input as shown below


once this down you will get selected date's year on parent screen from web block

Thanks

YOgesh


Demoyear.oml

got error. conflict between data type


var1 : date

year (input parameter) : integer

Capture5.PNG

you are missing to add 

Year(Var1)

while assigning value to your input

Capture7.PNG

can you please check input variables datatype inside event

whats the difference between Year(Var1) and Var1 while assigning the value?

Var1 is date typed.

 year(Var1) which return interger as output 

Please look into oml which i shared with you already.

Hope you will get it


got it, make mistake here. Got the output for year. all good. big thanks,  super appreciate it

welcome. Please like my comments if it is helpfull to you.

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