@AlexSchaIvy
We are currently using the DocumentTable component from the portal-components project and have additional requirements / problems regarding the document type. We believe, this fits in well with the current post.
Use case 1
In a current project, we need several upload options within the same user dialog view.
Desired Feature: Not all documents should be displayed for each upload option, but only those documents that have a specific type (from several predefined types).
Table 1:
- the component allows to upload documents of the type ‘accommodation receipts’ (among several predefined values).
Table 2:
- Another component in the same dialog only allows document uploads of the type ‘meal receipts’ (among several predefined values).
For this reason, it would be great if it were possible to filter the files in the DocumentTable according to the assigned type, so that
- all case related files of the type ‘accommodation receipts’ are displayed in table 1 and
- all case related files of the type ‘meal receipts’ are displayed in the table 2.
Use Case 2:
We have to ensure that at least one document was uploaded via DocumentTable, i.e. something like a "required" flag would be great.
Additional Challenge
Another complicating factor for our implementation is that ‘typeSelectionItems’ is an array, and AxonIvy ScriptStep and dialog start methods do not support arrays, meaning that the conversion from list to array only works via a Java class.
We would appreciate it if you could keep us informed about this, as we will also need these features in other current projects.
Best,
Mariano