UI/DataTable: add button to create entries
Another option might be to implement the EntryCreation on DataRetrievalš¤
Hi @thibsy and @yvseiler,
would you please look into this? There is no styling currently, but from my POV the interface is fine.
Kind regards!
Hi @catenglaender,
would you please add some styling here? Please ask @nhaagen for a quick introduction.
Kind regards!
Hi @yvseiler and @thibsy, hi all,
I just wanted to add a little context here =)
So, this is part of the quest to depopulate the Tool Bar. We already found some time ago that some of the functions that are commonly located in the Tool Bar could (and probably should) be moved to the thingies below. This tackles one example of these functions: There often some type of "Add" button in the toolbar that can be used to add rows to the table that is below. Sometimes that button opens some "underworld", sometimes that button is more than a simple button (think "User Search with Autocomplete".
We are looking to improve the Data Table by adding the option to define some Prompt that can be used to make the necessary input to create a new row in the table. General workflow then will be:
- Consumer adds a
Promptfor creation to theTable. - Consumer processes the
Promptsomewhere. - Once
Promptprocessing is complete, the original page with theTablecan be reloaded and can then contain the new entry (if everything else fits, filters, view controls, paginations...).
We discussed if we could even integrate this more closely with the data processing of the Table, e.g. by adding something to the DataRetrieval interface. We discarded this path, as we found that we only know little about actual creation of rows. Is there are workflow for the creation (or could there be)? Are some other intricacies involved with the creation (such as user auto completion)? Is the way we request data for presentation even close to the way we create records for that table? All this we do not know, so we don't seem to have a good handle for a closer integration here. Prompt seems to be the correct abstraction to use.
What we did expect, though, was, that it would be nice to have a way to highlight newly created rows. This possibility (not limited to creation, though) is proposed in #10210. There might be some more ideas for gadgets like this to smooth the UX of creation processes via table.
We also might look into some written rules for creation processes that codify a little further how they should work or might even be able to derive more formalism to encode them, but currently I don't feel that I know enough about the various use cases. So this is rather technical and if someone can add some more non-technical structure, this would be much appreciated.
I hope this helps to understand what this is all about =)
Kind regards!