Thursday, April 25, 2013
Implement PagePhaseListener for Single page or page fragment ADF
Tuesday, April 16, 2013
Close Browser Window without Promt using javascript ADF (IE)
import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
import org.apache.myfaces.trinidad.util.Service;
public void closeWindow() {
// Add event code here...
FacesContext facesContext = FacesContext.getCurrentInstance();
ExtendedRenderKitService service =
Service.getRenderKitService(facesContext,
ExtendedRenderKitService.class);
service.addScript(facesContext, "window.open('', '_self', ''); window.close();");
}
import org.apache.myfaces.trinidad.util.Service;
// Add event code here...
FacesContext facesContext = FacesContext.getCurrentInstance();
ExtendedRenderKitService service =
Service.getRenderKitService(facesContext,
ExtendedRenderKitService.class);
service.addScript(facesContext, "window.open('', '_self', ''); window.close();");
}
Thursday, April 11, 2013
Groovy Expression to disable button if no. of rows is null ADF
#{bindings.ExampleVO.estimatedRowCount eq 0}
Friday, April 5, 2013
Set Iterator to row with Key in backing bean adf
import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCIteratorBinding;
// Get the Iterator
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding unitVOIterator =
bindings.findIteratorBinding("unitViewROVOIterator");
RowSetIterator unitVORowSetIterator =
unitVOIterator.getRowSetIterator();
// Set the row
Key key = new Key(new Object[] { unit });
Row[] row = unitVORowSetIterator.findByKey(key, 1);// second parameter - No of Parameters to return
unitVORowSetIterator.setCurrentRow(row[0]);
unitViewROVORowImpl ccRow =
(unitViewROVORowImpl)unitVORowSetIterator.getCurrentRow();
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCIteratorBinding;
// Get the Iterator
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding unitVOIterator =
bindings.findIteratorBinding("unitViewROVOIterator");
RowSetIterator unitVORowSetIterator =
unitVOIterator.getRowSetIterator();
// Set the row
Key key = new Key(new Object[] { unit });
Row[] row = unitVORowSetIterator.findByKey(key, 1);// second parameter - No of Parameters to return
unitVORowSetIterator.setCurrentRow(row[0]);
unitViewROVORowImpl ccRow =
(unitViewROVORowImpl)unitVORowSetIterator.getCurrentRow();
Tuesday, March 26, 2013
Issue Opening BI Publisher Report through Inline Frame
Overcome it by creating WebService Proxy
Update Required
Update Required
Date Conversions
java.util.Date utilDate = new java.util.Date();
java.sql.Date sqlDate = new java.sql.Date(utilDate.getTime());
oracle.jbo.domain.Date jboDate = new oracle.jbo.domain.Date(sqlDate);
System.out.println("utilDate:" + utilDate);
System.out.println("sqlDate:" + sqlDate);
https://forums.oracle.com/forums/thread.jspa?threadID=2449218
Subscribe to:
Posts (Atom)


