diff --git a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json index 554979d..4df81ab 100644 --- a/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json +++ b/api/src/Sozsoft.Platform.DbMigrator/Seeds/LanguagesData.json @@ -17588,6 +17588,12 @@ "en": "Columns load after selecting a Select Command", "tr": "Select Command seçince sütunlar yüklenir" }, + { + "resourceName": "Platform", + "key": "ListForms.Wizard.Step3.SelectTable", + "en": "Select Table", + "tr": "Tablo Seç" + }, { "resourceName": "Platform", "key": "ListForms.Wizard.Step3.IncludeInEditingForm", diff --git a/ui/src/views/admin/listForm/edit/form-fields/FormFieldTabLookup.tsx b/ui/src/views/admin/listForm/edit/form-fields/FormFieldTabLookup.tsx index 8998101..f72ec57 100644 --- a/ui/src/views/admin/listForm/edit/form-fields/FormFieldTabLookup.tsx +++ b/ui/src/views/admin/listForm/edit/form-fields/FormFieldTabLookup.tsx @@ -13,6 +13,7 @@ import { number, object, string } from 'yup' import { cascadeFilterOperator, columnLookupDataSourceTypeListOptions } from '../options' import { FormFieldEditProps } from './FormFields' import { ColumnCascadeFilterOperatorEnum, UiLookupDataSourceTypeEnum } from '@/proxy/form/models' +import { buildLookupQuery } from '../../lookupQuery' const schema = object().shape({ lookupDto: object() @@ -190,7 +191,12 @@ function TablePickerModal({ {keyCol && nameCol && (
- {`SELECT "${keyCol}" AS "Key", "${nameCol}" AS "Name" FROM "${pickerTable?.tableName}" ORDER BY "${nameCol}";`} + {buildLookupQuery({ + keyColumn: keyCol, + nameColumn: nameCol, + tableName: pickerTable?.tableName, + columns: pickerColumns, + })}
)}