ADF : Reset or clear transient attribute manually
public void updateMappedFlag(){
ViewObjectImpl mapColumnVo =
(ViewObjectImpl)this.findIterator("FileImportMapColumnsIterator").getViewObject();
OAViewObjectImpl attrVo =
(OAViewObjectImpl)this.findIterator("FileImportAttrForObjectDetailForMapFieldsPageIterator").getViewObject();
RowSetIterator attrRSI = attrVo.getRowSetIterator();
RowSetIterator mapsRSI = mapColumnVo.getRowSetIterator();
Row[] mapColRows = mapColumnVo.getAllRowsInRange();
int count = 1;
long attrRowCount = 0;
attrRowCount = attrVo.getEstimatedRowCount();
int mapColumnRowCount = 0;
mapColumnRowCount = (int) mapColumnVo.getEstimatedRowCount();
attrRSI.reset();
attrVo.clearCache();
//testing
for(int i=0; i< mapColRows.length; i++){
Row mapColumnRow = mapColRows[i];
String sourceAttr = (String) mapColumnRow.getAttribute("ImpFieldName");
String objColDispName = (String) mapColumnRow.getAttribute("ObjColDisplayName");
String sourceMapped1 = (String) mapColumnRow.getAttribute("IgnoreFieldFlag");
if(objColDispName != null && !"".equalsIgnoreCase(objColDispName)){
Row[] attrRows = attrRSI.getFilteredRows("ObjectAttrName", objColDispName);
if(attrRows != null && attrRows.length == 1){
Row attrRow = attrRows[0];
if(attrRow != null){
attrRow.setAttribute("Mapped", "Y");
}
}
}
}
//end
mapsRSI.closeRowSetIterator();
attrRSI.closeRowSetIterator();
AdfFacesContext.getCurrentInstance().addPartialTarget(this.panelGL);
}
public void updateMappedFlag(){
ViewObjectImpl mapColumnVo =
(ViewObjectImpl)this.findIterator("FileImportMapColumnsIterator").getViewObject();
OAViewObjectImpl attrVo =
(OAViewObjectImpl)this.findIterator("FileImportAttrForObjectDetailForMapFieldsPageIterator").getViewObject();
RowSetIterator attrRSI = attrVo.getRowSetIterator();
RowSetIterator mapsRSI = mapColumnVo.getRowSetIterator();
Row[] mapColRows = mapColumnVo.getAllRowsInRange();
int count = 1;
long attrRowCount = 0;
attrRowCount = attrVo.getEstimatedRowCount();
int mapColumnRowCount = 0;
mapColumnRowCount = (int) mapColumnVo.getEstimatedRowCount();
attrRSI.reset();
attrVo.clearCache();
//testing
for(int i=0; i< mapColRows.length; i++){
Row mapColumnRow = mapColRows[i];
String sourceAttr = (String) mapColumnRow.getAttribute("ImpFieldName");
String objColDispName = (String) mapColumnRow.getAttribute("ObjColDisplayName");
String sourceMapped1 = (String) mapColumnRow.getAttribute("IgnoreFieldFlag");
if(objColDispName != null && !"".equalsIgnoreCase(objColDispName)){
Row[] attrRows = attrRSI.getFilteredRows("ObjectAttrName", objColDispName);
if(attrRows != null && attrRows.length == 1){
Row attrRow = attrRows[0];
if(attrRow != null){
attrRow.setAttribute("Mapped", "Y");
}
}
}
}
//end
mapsRSI.closeRowSetIterator();
attrRSI.closeRowSetIterator();
AdfFacesContext.getCurrentInstance().addPartialTarget(this.panelGL);
}