How to Get DFF Handle in OAF

/*Set DFF context starts*/


OADescriptiveFlexBean dffBean =


(OADescriptiveFlexBean) webBean.findChildRecursive("IrcFlexField4");


try {


  if (dffBean != null) {


    pageContext.writeDiagnostics(this,


    "Angshu: Found XXNR DFF Bean. Setting Context to APL",


    4);


    dffBean.setFlexContext(pageContext, "Applicant");


    dffBean.mergeSegmentsWithParent(pageContext);


    dffBean.processFlex(pageContext);


  } else {


    pageContext.writeDiagnostics(this,


    "Angshu: Did not find DFF Bean",


    4);


  }


} catch(Exception e) {


  pageContext.writeDiagnostics(this,


  "Angshu: Could not set the Context",


  4);


  e.printStackTrace();


}


/*Set DFF context ends*/


/*Get the ATtribute Fields start*/


OADescriptiveFlexBean oaDFFType =


(OADescriptiveFlexBean) webBean.findChildRecursive("IrcFlexField1"); // put your dff web bean name here


oaDFFType.processFlex(pageContext);


pageContext.writeDiagnostics(this,


"oaDFFType Name" + oaDFFType, 3);


Enumeration x1 = null;


x1 = oaDFFType.getChildNames();


pageContext.writeDiagnostics(this,


"Angshu:FFF oaDFFType" + oaDFFType.getChildNames(),


3);


if (x1 != null) {


  while (x1.hasMoreElements()) {


    String aParamName1 = (String) x1.nextElement();


    OAWebBean dffbeans =


    (OAWebBean) oaDFFType.findChildRecursive(aParamName1);


    pageContext.writeDiagnostics(this,


    "XXNUF: SEGEMNTSSS OF DFF -  " +


    aParamName1, 3);


    OAWebBean CLASSIFICATION1 =


    (OAWebBean) localOADescriptiveFlexBean.findChildRecursive("DescriptiveFlxFld3");


    if (DescriptiveFlxFld3 != null) {


      pageContext.writeDiagnostics(this, "Angshu:FFF",


      3);


      IrcFlexField10.setRendered(false);`


    }


  }


}


/*Get the ATtribute Fields End*/


Comments