Search This Blog

Code to access DCBindingContainer & DCIteratorBinding ( ADF and BPM 11g )


 Code to access DCBindingContainer & DCIteratorBinding  ( ADF and BPM 11g )


              some point of time need to get username who logged or some BPM pre-defined elements have to access . Below piece of code useful to access.Applicable for both ADF- BPM and separate ADF Project with data control approach also . 




Java Code :

import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.binding.DCIteratorBinding;
import oracle.binding.BindingContainer;



DCBindingContainer dcBindings = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry() ;
DCIteratorBinding iteratorBindingTask =dcBindings.findIteratorBinding("taskIterator");
              
 String  userName =(String)iteratorBindingTask.getCurrentRow().getAttribute("creator");

     





1 comment: