if(this.fmObject)
this.fmClass = this.fmObject.classname;
this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
+ this.suppressLinkedFields = args.suppressLinkedFields || [];
if(!this.idlField) {
this.fmIDL = fieldmapper.IDL.fmclasses[this.fmClass];
if(this.idlField.datatype == 'org_unit')
return false; // we already handle org_units, no need to re-fetch
+ // user opted to bypass fetching this linked data
+ if(this.suppressLinkedFields.indexOf(this.idlField.name) > -1)
+ return false;
+
var linkInfo = this._getLinkSelector();
if(!(linkInfo && linkInfo.vfield && linkInfo.vfield.selector))
return false;
displayLimit : 15,
displayOffset : 0,
showPaginator : false,
+ suppressLinkedFields : null, // list of fields whose linked display data should not be fetched from the server
/* by default, don't show auto-generated (sequence) fields */
showSequenceFields : false,
fmClass: this.grid.fmClass,
fmField: this.field,
widgetValue : val,
- readOnly : true
+ readOnly : true,
+ suppressLinkedFields : this.grid.suppressLinkedFields
});
var _this = this;