Adding existing records from a related entities table (generalize EditTextWithAutocomplete) #2201
Open
4 of 6 tasks
Labels
Type: Feature
new user-facing feature
As a user I want to link an existing activity directly from the "related entities" table embedded in my school details view. Currently I can only create a new activity from the popup using the table's plus button. To link an existing one, I have to navigate to the relevant activity's details view and edit this through its entity-select field.
[actually, for activity-school relationships this is possible already but needs to be generalized for any two entity types]
Requirements:
for any RelatedEntitiesComponent:
EditTextWithAutocompleteComponent
and replace it with the newly developed, more general componentPossible Approach
We already have a special feature for linking existing RecurringActivities in the
ActivitiesOverviewComponent
(in demo system: open School details > Activities tab > create new button > use "title" field to search for existing).This is done using the
EditTextWithAutocomplete
component as a special form field. However, the current implementation requires the ActivitiesOverviewComponent to inject the id of the "parent" entity into the column config at runtime. Therefore, this currently can't be used in standard RelatedEntitiesComponent.--> generalize this, so that we can simply use this editComponent on any field in a RelatedEntities table.
--> display as separate "field", like the "Currently: Active" indicator for School History entries?
this is the first case in the visualization (second case, see #2213)
![image](https://private-user-images.githubusercontent.com/1682541/301868742-bcaa486e-6547-42ef-b794-2e74e7c1d179.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk5MjA0MjgsIm5iZiI6MTczOTkyMDEyOCwicGF0aCI6Ii8xNjgyNTQxLzMwMTg2ODc0Mi1iY2FhNDg2ZS02NTQ3LTQyZWYtYjc5NC0yZTc0ZTdjMWQxNzkucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxOCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMThUMjMwODQ4WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTRmZmJlOGFlYjJmMjZlZjVmY2JjNTBlODEwNjA3YWFhZWZhOGJmM2U2MDdkMjZlOGZhZWVkZmUwN2M3ODUxZSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.G16tVIRC5ZIV8mqOjCcUAkw4nOE_OakGfmX4PeyXHpk)
The text was updated successfully, but these errors were encountered: