Thursday, August 11, 2011

ADF Making the results of a service backed find editable

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);     }   }

No comments:

Post a Comment