Is there any possibility right now to mix the structure and reference tree's together?
For example we have the following tree:
The problem right now is that the "kaufmännischer Fragebogen" can contain multiple files and also can exist before the "Auftragsakte" so we changed the system so that the "kaufmännischer Fragebogen" has an own context folder and is referenced to the "Auftragsakte" once it's created.
But the other problem now is that we can't have it under point 3 "Auftragsbestätigung" anymore cause it's a reference now. (we also moved the references up with custom css so dont get confused by that).
And it's hard to explain to our ousers why it has to be outside now so it would be nice to have a "mixed" tree.
Maybe some concept where you can write simple Scripts to generate the tree with JavaScript for the future could be interesting for yuuvis.
for example the structure tree could be just a simple definition or some script like that and would also allow all forms of custom conditions etc.
// Simple structure tree like now
[
{
"title": "Auftragsakte",
"expanded": true,
"key": "auftragalledokumente",
"folder": [
{
"title": "1. Vertragsannahme",
"key": "vertragsannahme",
"condition": "type='akteverhandlungsprotokoll' OR (type='akteschriftverkehr' AND akteschriftverkehr.art='Beauftragung')",
"expanded": false,
"folder": [
{
"title": "Beauftragung",
"condition": "type='akteschriftverkehr' AND akteschriftverkehr.art='Beauftragung'",
"key": "beauftragung"
},
{
"title": "Verhandlungsprotokoll",
"condition": "type='akteverhandlungsprotokoll'",
"key": "verhandlungsprotokoll"
}
]
}
]
}
]
// Advanced custom tree for more complex things
// object could look like this:
// {
// "type": string type of the object
// "reference": true / false,
// "data": { ... },
// ...
// }
(objects) => {
return [
{
"title": "Auftragsakte",
"expanded": true,
"key": "auftragalledokumente",
"folder": [
{
"title": "1. Vertragsannahme",
"key": "vertragsannahme",
"condition": "type='akteverhandlungsprotokoll' OR (type='akteschriftverkehr' AND akteschriftverkehr.art='Beauftragung')",
"expanded": false,
"folder": [
{
"title": "Beauftragung",
"entries": (objects) => objects.filter((entry) => entry.type === 'akteschriftverkehr' && entry.akteschriftverkehr.art === 'Beauftragung'),
"key": "beauftragung"
},
{
"title": "Verhandlungsprotokoll",
"condition": "type='akteverhandlungsprotokoll'",
"key": "verhandlungsprotokoll"
}
]
}
]
}
];
}
of course this could be way more advanced to allow a much more flexible structure.
But for now is there a way to replace the structure tree somehow with custom JavaScript and still keep the functionality or something like that? This would be really helpfull! :)
Thanks in advance!