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 handle date in adf..........?/?

1033266Nov 8 2016 — edited Nov 8 2016

Hi All,

can any one tell me how to handle date in bean ,here i am doing small kind of poc and in this we are entering the date we are showing employees details based on date it is showing in log only but on page it is showing no data to display ,please help me out

here is my code:

public String go() {

    // Add event code here...

  //  DateFormat dateFormat = new SimpleDateFormat("MM/dd/yyyy HH:mm:ss");

 //   java.util.Date date = new java.util.Date();

   //String Date=dateFormat.format(date);

    Date = (Timestamp)this.getDatelov().getValue();

    System.out.println(1);

    DCBindingContainer bindings =(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();

    System.out.println(2);

   DCIteratorBinding roleIter = bindings.findIteratorBinding("Queryobject1Iterator");

    AppModuleImpl am=(AppModuleImpl)bindings.findDataControl("AppModuleDataControl").getDataProvider();

   // BindingContext bindingContext = BindingContext.getCurrent();

  //  DCDataControl dc  = bindingContext.findDataControl("AppModuleDataControl");

    ViewObject trvo=am.getQueryobject1();

    System.out.println(trvo);

    LovobjectRowImpl vo1 = (LovobjectRowImpl)trvo.getCurrentRow();

    System.out.println(vo1);

     trvo.setNamedWhereClauseParam("p\_date", vo1);

   System.out.println(Date);

  trvo.executeQuery();

   System.out.println(trvo.getQuery());

   System.out.println("rows are "+trvo.getRowCount());

    return null;

}

output:

pastedImage_0.png

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 6 2016
Added on Nov 8 2016
1 comment
308 views