Get the current row or the row you want editable and run it through this method:
import oracle.jbo.server.ViewAttributeDefImpl; public static void setRowEditable(Row row) { int attribCount = row.getAttributeCount(); for(int i = 0; i < attribCount; i++) { ViewAttributeDefImpl attrDef = (ViewAttributeDefImpl) row.getStructureDef().getAttributeDef(i); attrDef.setEditable(true); attrDef.setUpdateableFlag(ViewAttributeDefImpl.UPDATEABLE); } }
Comments
Post a Comment