How can we get in uploaded Document name ,uploaded by and uploaded on in supervisor form using grids of 3 column.
Discussion posts and replies are publicly visible
folder(folderId, property) Returns a property of the requested folder. The return type will be the type of that property; for example selecting ’dateCreated’ as the property parameter returns a Date and Time value. Returns: Any Type folderId (Number (Integer)): The ID of the folder to be retrieved.
I will submit that, yes you can, until you show me an error message.
Appian will convert the "folder" type object to it's ID for use within the folder() function automatically.
I have tested this again successfully with my code locally. I always suggest trying before assuming.
This is what will happen if you don't use the folder() function correctly. Please refer back to how Chris used it in his example, in particular the highlighted part:
The properties you can pass into folder() are strictly defined, you can't just pass in random strings as you've done (i.e. passing in "SG_Document"), and expect it to work.
Yep. Basically just replace "SG_Document" with "documentChildren" and you should be all set.
Hi.Yes replaced with that "documentChildren"Now I want to add 3 more cons!folder_name.How can it be done?
Replace your local!doc config with a!forEach() to iterate over your list of folders, such as:
a!localVariables( local!doc: a!flatten( a!forEach( items: { cons!FOLDER1, cons!FOLDER2, cons!FOLDER3 }, expression: folder(fv!item, "documentChildren") ) ), a!gridLayout( headerCells: { a!gridLayoutHeaderCell(label: "Document Name"), a!gridLayoutHeaderCell(label: "Uploaded By"), a!gridLayoutHeaderCell(label: "Uploaded On") }, rows: a!forEach( items: local!doc, expression: a!gridRowLayout( id: fv!index, contents: { a!richTextDisplayField( value: a!richTextItem( text: document(fv!item,"name") ) ), a!richTextDisplayField( value: a!richTextItem( text: document(fv!item,"lastUserToModify") ) ), a!richTextDisplayField( value: a!richTextItem( text: document(fv!item,"dateCreated") ) ) } ) ) ) )