DCIteratorBinding iterBind = ADFUtils.findIterator("MyVOIterator");
Row currRow = iterBind.getCurrentRow();
BackingBeanUtils.setRowEditable(currRow);
currRow.setAttribute("MyAttribute", "MY_VALUE");
Row currRow = iterBind.getCurrentRow();
BackingBeanUtils.setRowEditable(currRow);
currRow.setAttribute("MyAttribute", "MY_VALUE");
// commit transaction
iterBind.getDataControl().commitTransaction();
...and for reference purposes, the setRowEditable(Row) utility method:
public static void setRowEditable(Row row) {
int attribCount = row.getAttributeCount();
for(int i = 0; i < attribCount; i++) {
ViewAttributeDefImpl attrDef = (ViewAttributeDefImpl)
int attribCount = row.getAttributeCount();
for(int i = 0; i < attribCount; i++) {
ViewAttributeDefImpl attrDef = (ViewAttributeDefImpl)
row.getStructureDef().getAttributeDef(i);
attrDef.setEditable(true);
attrDef.setSDOHidden(false);
attrDef.setUpdateableFlag(ViewAttributeDefImpl.UPDATEABLE);
}
}
attrDef.setEditable(true);
attrDef.setSDOHidden(false);
attrDef.setUpdateableFlag(ViewAttributeDefImpl.UPDATEABLE);
}