I have a Transient class containing a few fields. I would like to default a field in the class to a default value when the class is loaded. Is this possible on a Transient class ?
Thanks in advance.
Regards
Med
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi all,
I have a Transient class containing a few fields. I would like to default a field in the class to a default value when the class is loaded. Is this possible on a Transient class ?
Thanks in advance.
Regards
Med
Hi Med,
of course, it's possible. Just define @DefaultValueCalculator for your properties and call to getView().reset() from an on-init action.
Help others in this forum as I help you.
Thanks Javier. It worked. Much appreciated.
Med