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
You can use function Year() and pass selected date to it and it will return you just year.
Suraj Borade wrote:
Hi Suraj,
Can you share the OML for that.
Thanks,
Saravana
Saravana Kumar Sivaraj wrote:
Hi Saravana
Test my OML
Best regards,
PVN
I think you need to use a component to do that like datedropper.
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.