From 7c2bfec22c5bbf76d5ba04114ac38ca1b981b8cf Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Thu, 7 Nov 2024 15:53:04 +0000 Subject: [PATCH 1/6] Adding the ability to set formula response type - returning native values. --- .../DataTable/modals/CreateEditColumn.svelte | 21 ++++++++++++ .../components/grid/cells/FormulaCell.svelte | 18 ++++++++++- .../src/utilities/rowProcessor/index.ts | 18 +++++------ .../src/utilities/rowProcessor/utils.ts | 32 ++++++++++++++++--- .../types/src/documents/app/table/schema.ts | 5 +++ 5 files changed, 79 insertions(+), 15 deletions(-) diff --git a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte index d16bca3203..96397490f8 100644 --- a/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte +++ b/packages/builder/src/components/backend/DataTable/modals/CreateEditColumn.svelte @@ -371,6 +371,7 @@ delete editableColumn.relationshipType delete editableColumn.formulaType delete editableColumn.constraints + delete editableColumn.responseType // Add in defaults and initial definition const definition = fieldDefinitions[type?.toUpperCase()] @@ -386,6 +387,7 @@ editableColumn.relationshipType = RelationshipType.MANY_TO_MANY } else if (editableColumn.type === FieldType.FORMULA) { editableColumn.formulaType = "dynamic" + editableColumn.responseType = FIELDS.STRING.type } } @@ -767,6 +769,25 @@ {/if} +
+
+ +
+
+