Create ADF popup for value change event(For select one choice component).

Add popup and add dialog to inside of the popup,then select popup and add value for binding attribute in mine
#{pageFlowScope.popupBean.myPop}.
private RichPopup myPop = new RichPopup();
public void selectOneChoiceEvent(ValueChangeEvent valueChangeEvent) {
RichPopup.PopupHints ph = new RichPopup.PopupHints();
myPop.show(ph);
}
public void setMyPop(RichPopup myPop) {
this.myPop = myPop;
}
public RichPopup getMyPop() {
return myPop;
}

Oracle ADF - Add new custom attribute for view object using Expression

Oracle ADF Client-side Validators

Oracle ADF Association sample for Department and Employee

Wednesday, June 5, 2013

Oracle ADF : Get the selected value from SelectOneChoice not the Index;

        You can get selected attribute value using iterator for SelectOneChoice
       
        BindingContext bindingctx = BindingContext.getCurrent();
        BindingContainer bindings = null;
        bindings = bindingctx.getCurrentBindingsEntry();
        DCBindingContainer bindingsImpl = (DCBindingContainer) bindings;
        DCIteratorBinding dciter = null;
        dciter = bindingsImpl.findIteratorBinding("yourIterator");// your lookup iterator
        Object fieldVal = dciter.getViewObject().getCurrentRow().getAttribute("YourField");
        System.out.println(dciter.getViewObject().getCurrentRow().getAttribute(fieldVal));

2 comments:

  1. Also you can use following,

    DCIteratorBinding iter = ((DCBindingContainer)getBindings()).findIteratorBinding("YourIterator");
    Row r = iter.getRowAtRangeIndex((Integer)getSelectOneChoice().getValue());
    String value = (String)r.getAttribute("AttributeName");

    ReplyDelete
  2. If you're trying to lose weight then you absolutely need to start following this totally brand new tailor-made keto meal plan.

    To create this keto diet service, certified nutritionists, personal trainers, and professional chefs united to provide keto meal plans that are efficient, decent, price-efficient, and satisfying.

    Since their launch in 2019, hundreds of individuals have already completely transformed their body and well-being with the benefits a good keto meal plan can provide.

    Speaking of benefits: in this link, you'll discover 8 scientifically-certified ones provided by the keto meal plan.

    ReplyDelete