1.To Get Attributre Value from iteraor binding
DCBindingContainer dcBindings = (DCBindingContainer)
BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding iterBind= (DCIteratorBinding)dcBindings.get("yourVOIteratorName");
Number Id = (Number)iterBind.getCurrentRow().getAttribute("ItemId");
2.Accessing Data Controls and Bindings
Access AM
DCBindingContainer bc = getBindingContainer();
SomeAppModule testAM = (SomeAppModule)bc.findDataControl("SomeAppModule DataControl").getDataProvider();
ex.
CaseMgtAMImpl am = null;
am = (CaseMgtAMImpl)Configuration.createRootApplicationModule("org.adr.prism.casemgt.model.am.CaseMgtAMImpl","CasesMgtAMLocal");
Connection dbConn = am.getDBConnection();
Connection dbConn = am.getDBConnection();
3.Commiting Data programatically
BindingContext bindingContext = BindingContext.getCurrent();BindingContainer bindings = bindingContext.getCurrentBindingsEntry();
OperationBinding commitOper = (OperationBinding) bindings.get("Commit");
commitOper.execute();
Comments
Post a Comment