Select full record in variable dropdown (#8851)
Output schema is now separated in two sections: - object, that gather all informations on the selectable object - fields, that display object fields in a record context, or simply the available fields from the previous steps The dropdown variable has now a new mode: - if objectNameSingularToSelect is defined, it goes into an object mode. Only objects of the right type will be shown - if not set, it will use the already existing mode, to select a field When an object is selected, it actually set the id of the object https://github.com/user-attachments/assets/1c95f8fd-10f0-4c1c-aeb7-c7d847e89536
This commit is contained in:
@ -1,9 +1,12 @@
|
||||
import { FieldMetadataType } from 'src/engine/metadata-modules/field-metadata/field-metadata.entity';
|
||||
|
||||
type FakeValueTypes =
|
||||
| string
|
||||
| number
|
||||
| boolean
|
||||
| Date
|
||||
| FakeValueTypes[]
|
||||
| FieldMetadataType
|
||||
| { [key: string]: FakeValueTypes };
|
||||
|
||||
export const generateFakeValue = (valueType: string): FakeValueTypes => {
|
||||
@ -35,6 +38,8 @@ export const generateFakeValue = (valueType: string): FakeValueTypes => {
|
||||
});
|
||||
|
||||
return objData;
|
||||
} else if (valueType === FieldMetadataType.TEXT) {
|
||||
return 'My text';
|
||||
} else {
|
||||
return 'generated-string-value';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user