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:
