pict-section-recordset 1.0.45 → 1.0.46
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -383,7 +383,7 @@ class MeadowEndpointsRecordSetProvider extends libRecordSetProviderBase
|
|
|
383
383
|
const tmpFieldHumanName = this._getHumanReadableFieldName(pSchemaField);
|
|
384
384
|
const isUserAuditField = ['CreatingIDUser', 'DeletingIDUser', 'UpdatingIDUser'].includes(pSchemaField);
|
|
385
385
|
const customFilterClauses = this.options.Filters?.[pSchemaField];
|
|
386
|
-
if (pSchemaField.startsWith('ID') || isUserAuditField || customFilterClauses)
|
|
386
|
+
if (pSchemaField.startsWith('ID') || pSchemaField.startsWith('ParentID') || isUserAuditField || customFilterClauses)
|
|
387
387
|
{
|
|
388
388
|
for (const customField of Array.isArray(customFilterClauses) ? customFilterClauses : [customFilterClauses])
|
|
389
389
|
{
|
|
@@ -394,14 +394,11 @@ class MeadowEndpointsRecordSetProvider extends libRecordSetProviderBase
|
|
|
394
394
|
"Label": `${ fieldName }`,
|
|
395
395
|
"Type": "InternalJoinSelectedValueList",
|
|
396
396
|
"ExternalFilterByColumns": remoteTableName === 'User' ? [ 'NameFirst', 'NameLast' ] : [ 'Name' ],
|
|
397
|
-
|
|
398
397
|
"ExternalRecordDisplayTemplate": remoteTableName === 'User' ? '{~D:Record.Data.NameFirst~} {~D:Record.Data.NameLast~}' : '{~D:Record.Name~}',
|
|
399
|
-
|
|
400
398
|
"CoreConnectionColumn": pSchemaField,
|
|
401
|
-
|
|
402
399
|
"RemoteTable": `${ remoteTableName }`,
|
|
403
400
|
"JoinExternalConnectionColumn": `ID${ remoteTableName }`,
|
|
404
|
-
"JoinInternalConnectionColumn":
|
|
401
|
+
"JoinInternalConnectionColumn": pSchemaField,
|
|
405
402
|
'DisplayName': `Selected Records`,
|
|
406
403
|
'Ordinal': tmpFieldFilterClauses.length + 1,
|
|
407
404
|
'FilterKey': pSchemaField,
|
|
@@ -593,6 +590,14 @@ class MeadowEndpointsRecordSetProvider extends libRecordSetProviderBase
|
|
|
593
590
|
{
|
|
594
591
|
return 'Date Last Updated';
|
|
595
592
|
}
|
|
593
|
+
if (pSchemaField.startsWith('ID'))
|
|
594
|
+
{
|
|
595
|
+
return this._getHumanReadableEntityName(pSchemaField.split('ID')[1]);
|
|
596
|
+
}
|
|
597
|
+
if (pSchemaField.startsWith('ParentID'))
|
|
598
|
+
{
|
|
599
|
+
return 'Parent ' + this._getHumanReadableEntityName(pSchemaField.split('ID')[1]);
|
|
600
|
+
}
|
|
596
601
|
return pSchemaField.replace(/([a-z])([A-Z])/g, '$1 $2') // Add space before capital letters
|
|
597
602
|
}
|
|
598
603
|
|