Hi all,
in one of our applications we model some business configuration as own entity and want to provide a UI for the user to edit the data.
For this model exactly one document exists and it should not be possible to add a new one.
Is there any solution via appmodel to directly show the form model for this certain document (without referencing the document ID in the activity descriptor
) without first showing the overview (with one entry)?
Or are there any solutions in other projects already for such a usecase?
Or is this a known requirement?
Thanks for your input,
Karo
Hi @karoline-quantum-cell
You’ve already identified the modeling settings that we have available to us.
is the only way that I can specify in the App Model, which document should be loaded.
A List View (Tree or Overview) will load documents based on the Document Models that they reference so that the end-user can select a specific Document. Clicking on a row in a overview then sets the document ID that you want to load and display in the form.
It sounds like you need some custom development here to:
- Get a List of Document IDs (like when you load an overview)
- Load the 1st ID from that list (as you only have one Document)
This code then effectively works through the same steps as the end-user that I described above.