Hi All,
I'm trying to populate a dropdown in forms with years for a certain period.
I'm trying to use entity as CustomTimePeriod to populate the dropdown.
This is the code:
<field name="periodId" title="Period">
<drop-down allow-empty="false">
<entity-options entity-name="CustomTimePeriod" description="${periodName}" key-field-name="customTimePeriodId" />
</drop-down>
</field>
The error I'm getting is:
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://common/widget/CommonScreens.xml#FindScreenDecorator]: java.lang.ClassCastException: java.sql.Date cannot be cast to java.sql.Timestamp (java.sql.Date cannot be cast to java.sql.Timestamp)
Has anyone else encountered the same problem?
Regards,
Varun