dojo.require('openils.PermGrp');
dojo.require('openils.widget.OrgUnitFilteringSelect');
dojo.require('openils.widget.PermGrpFilteringSelect');
+dojo.require('fieldmapper.OrgUtils');
var GPT = {
oncomplete: GPT._loadCspComplete
}
);
+ },
+
+ getOrgInfo : function(rowIndex, item) {
+ if(item) {
+ var orgId = this.grid.store.getValue(item, this.field);
+ return fieldmapper.aou.findOrgUnit(orgId).shortname();
+ }
}
};
<tr>
<th field="id">ID</th>
<th field="grp" width='auto' get='GPT.getGroupName'>Group</th>
- <th field="org_unit" width='auto'>Context Org Unit</th>
+ <th field="org_unit" width='auto' get='GPT.getOrgInfo'>Context Org Unit</th>
<th field="penalty" width='auto'>Penalty</th>
<th field="threshold" width='auto'>threshold</th>
</tr>