Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

how to set today's date in create with params

user8696578Aug 9 2015 — edited Aug 10 2015

Hi Experts,

JDev 12C,

I am using CreateWithParams and I wanted to set a Date field as today's date. So how can I do it?

I tried mapping the HrDate field and set it value as adf.currentDate and its type as oracle.jbo.domain.TimeStamp.

When I run the page I get the below error.

java.lang.IllegalArgumentException

    at oracle.jbo.domain.Date.parseISO8601FormatString(Date.java:628)

    at oracle.jbo.domain.Date.toDate(Date.java:609)

    at oracle.jbo.domain.Date.<init>(Date.java:390)

    at oracle.jbo.domain.Date$1.convert(Date.java:116)

    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:870)

    at oracle.jbo.domain.TypeFactory.get(TypeFactory.java:574)

    at oracle.jbo.domain.TypeFactory.getInstance(TypeFactory.java:351)

    at oracle.adf.model.binding.DCMethodParameterDef.resolveParameterValue(DCMethodParameterDef.java:225)

Thanks,

Animesh

This post has been answered by user8696578 on Aug 9 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2015
Added on Aug 9 2015
5 comments
872 views