private toast: ToastService,
private locale: LocaleService,
private net: NetService,
+ private idl: IdlService
) {
this.gridDataSource = new GridDataSource();
this.refreshSettings = true;
fetchLinkedField(fmClass, id, val) {
return new Promise((resolve, reject) => {
return this.pcrud.retrieve(fmClass, id).subscribe(linkedField => {
- val = linkedField.name();
+ const fname = this.idl.getClassSelector(fmClass) || this.idl.classes[fmClass].pkey || 'id';
+ val = this.idl.toHash(linkedField)[val];
resolve(val);
});
});
this.mergeSettingValues().then(
res => this.filterCoust()
);
+ this.refreshSettings = true;
}
if (this.refreshSettings) {