I would like to be able via a Date Time Field to Retrieve only the year of this field and display it in another field of my view in non-editable. Is it possible on the view side via XML or do I have to go through JAVA code?
My need is this: I need that when the user enters (onChange) his date in a dateTime field (fromDate).
Another field (yearDate) captures by doing a split for example on the fromDate field and updates the yearDate field.
I don’t know where I can put my script in the frameWork view.
Otherwise I can do it in java but hey just for a split it bothers me to make a method just for that.
I know you can use groovy but I don’t know how I refer to my fields etc…
Thank you for your answer, it works, indeed it takes it hot view side via angular I saw. Strange, that I failed to display it from JAVA, in my answer the hashMap contains my value yet but good.