Thursday, September 3, 2026

ax - How enable change on the row only to the user who created

On the DataSource override this method:
public int active()
{

    int ret;
    boolean bModifyEnabled;

    ret = super();

    bModifyEnabled = ( 
                        CIEB_OOPP_Requirements_ds.cursor().createdBy == curUserId() ||
                        UserInfoHelp::userInUserGroup( curUserId(), 'OOPP_ADMIN' ) ||
                        Global::isSystemAdministrator()
                     );

    CIEB_OOPP_Requirements_ds.allowEdit( bModifyEnabled );
    CIEB_OOPP_Requirements_ds.allowDelete( bModifyEnabled );

    return ret;
}