WIP - display related lists
This commit is contained in:
@@ -135,7 +135,7 @@ export class DynamicModelFactory {
|
||||
}
|
||||
}
|
||||
|
||||
const targetTable = this.getTableName(relation.targetObjectApiName);
|
||||
const targetTable = DynamicModelFactory.getTableName(relation.targetObjectApiName);
|
||||
|
||||
if (relation.type === 'belongsTo') {
|
||||
mappings[relation.name] = {
|
||||
|
||||
@@ -643,6 +643,7 @@ export class ObjectService {
|
||||
relationName: string;
|
||||
objectApiName: string;
|
||||
lookupFieldApiName: string;
|
||||
parentObjectApiName: string;
|
||||
fields: any[];
|
||||
}>> {
|
||||
const knex = await this.tenantDbService.getTenantKnexById(tenantId);
|
||||
@@ -703,6 +704,7 @@ export class ObjectService {
|
||||
relationName,
|
||||
objectApiName: lookup.childApiName,
|
||||
lookupFieldApiName: lookup.fieldApiName,
|
||||
parentObjectApiName: objectApiName,
|
||||
fields: fieldsByObject.get(lookup.objectDefinitionId) || [],
|
||||
};
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user