major
nice-to-have
defect
major
enhancement
minor
#23319
Use Create functionality independently from `AbstractCreateCommandHandler
To create a new grid row inline within the grid, you previously needed an ` AbstractCreateCommandHandler` to finally generate the object from the grid's form data. However, this does not use the CommandHandler API; instead, it calls a public method that is defined only in AbstractCreateCommandHandler.
Improvement
A dedicated API that can be used, for example, from within the grid to create an object from form data.
Usage
- Custom interface `com.top_logic.layout.form.component.CreateFunction.createObject(LayoutComponent, TLObject, FormContainer, Map<String, Object>)` independent of ` AbstractCreateCommandHandler`.
- Independent implementation `com.top_logic.element.meta.gui.FormObjectCreation ` to generically create an object from form data.
Test
- See #23318
Code Migration
- com.top_logic.element.layout.grid.GridComponent.startCreation(String, TLClass, CreateFunction, ContextPosition, TLObject) now requires TLObject as the context object.