I have an entity with attribute year of type Integer. Is it possible to show datepicker and just return the year when a date is clicked?

thank you,

regards,

bb

I think you need to use a component to do that like datedropper.

Solution

You can use function Year() and pass selected date to it and it will return you just year.

Solution

Thank u for the reply. How to open the datepicker as the input widget is of type Integer? Tq

If you need a layout that only shows the year i suggest you use a component like the one i mentioned before, if you only need to get the year from a selected date a suggest you use the Suraj Borade solution.


I think that the input needs to be text type.

Suraj Borade wrote:

You can use function Year() and pass selected date to it and it will return you just year.


Hi Suraj,

             Can you share the OML for that.


Thanks,

Saravana

Saravana Kumar Sivaraj wrote:

Suraj Borade wrote:

You can use function Year() and pass selected date to it and it will return you just year.


Hi Suraj,

             Can you share the OML for that.


Thanks,

Saravana


Hi Saravana


Test my OML


Best regards,

PVN