Selecting Approvers
In this documentation, you will be able to transform the representation of the data-table when selecting your internal or external users during the creation of a digital order.
Under the "resources/settings" directory you can add a selectApprovers.json file:
Important to have the name of the file correctly spelled otherwise the changes will be ignored.
KEY | REQUIRED | DESCRIPTION TEXT | TYPE |
---|---|---|---|
keys | false |
Keys are an array of names of the columns you want to show. The data key will be used to display the values accordingly. Valid column names(keys) are: "userId", "firstName", "lastName", "mobile", "mail", "organization" and "department". |
Array |
data | false | The user can chose how they want to show the data, independent of whether the functionality allows for editing. ------------------------------------------------------------- Available types ------------------------------------------------------------- Text Simple text view of the data EditableInput Input if editable field, otherwise shows as Text. TranslatedText Translate the data value & shown as Text. |
Object |
translationKey |
false |
The translation key reference used. | String |
skipValidation |
false |
In the case of editable data and you want to always use the default value, you will need to use the skipValidation array. | Array |
selectedUserColumns
Below you will see the internal user search shows only user Identifier and the given name columns.
This is done by using the the keys dataset:
<p>{
"internalUserColumns": {
"keys": ["firstName"],
"data": {
"firstName": "Text"
},
"skipValidation": ["firstName"]
}
}</p>
It is good practice to put skipValidation to the inputs you want to show as non-editable Text types.