Skip to main content

How do I get the documents that are selected from the document table using the API?

Comments

3 comments

  • Richard Moir

    Often you get the selected document by implementing one of the plugin classes that take documents as input. For example, the selected documents are passed in to DocumentOperation.performOperation().

    If that is not that case for you, you can call DocumentUtilities.getSelectedDocuments()

    0
  • Jsr Castrogiovanni

    Thank you,
    How do I go about implementing this? The getSelectedDocuments method always returns empty for me.

    0
  • Richard Moir

    We will need more information to determine why that is. Most likely the documents are no longer selected when your code is executed. It will only work if a documented is selected like shown in this screenshot exactly when your code runs. If you can provide a screenshot or recording of the plugin running then we may be able to debug further.

    0

Please sign in to leave a comment.