How to capture which document is clicked?

Hello All, We're using Appian 7.2 and have created a form that contains a message field. The content of the message field is a document list, from the function =documentlist(getdocumentsfromfolder(pv!myFolder, true)). This works fine in that it returns the document list and we can click a document and it opens. But how can I capture within the process which document was clicked so I can use that document ID later in the process? Thanks....

OriginalPostID-98313

OriginalPostID-98313

  Discussion posts and replies are publicly visible

Parents
  • Hi,
    For your use case, you can use grid with 2 columns: check-box and message field. By apply function display the documents in message field. Now Store the user selection in a PV(Using check box). The output of the check box is boolean array, in that the index where we have true represents the selected index in the grid. Using that value you can get the respective documents and then use document(pv!doc,"id") function to retrieve the document id.
Reply
  • Hi,
    For your use case, you can use grid with 2 columns: check-box and message field. By apply function display the documents in message field. Now Store the user selection in a PV(Using check box). The output of the check box is boolean array, in that the index where we have true represents the selected index in the grid. Using that value you can get the respective documents and then use document(pv!doc,"id") function to retrieve the document id.
Children
No Data