Show a dynamic number of files in a grid and edit certain file attributes.
For this recipe, were are giving our users the ability to update the file name, description, and an associative field for the file "Category". However, designers can modify this recipe to modify various types of document metadata.
This scenario demonstrates:
How to handle an array of documents in an editable grid for file verification and attribute editing
Before we can see this recipe in the live view of the Interface designer, we will need to create a Constant that holds an array of documents. To do this:
Upload a few files into Appian
Create a constant of type Document named UC_DOCUMENTS and select the multiple checkbox. Select the files you just uploaded as the value.
Test it out
Set the category of a file to Resume. Notice that the category is applied to the dictionary created in local!fileDictionary
Notable implementation details
While this recipe uses local variable for their stand-alone capability, you will typically be interaction with a CDT or datasubset data structure when working with file attributes. In these cases, the data would typically be passed in via a rule input or query.