Skip to main content
Known Participant
Feb 27, 2024 8:45 AM UTC
Question

Document in new window from record summary

a!documentViewerField(
      label: a!defaultValue(value: ri!label, default: "Document"),
      labelPosition: a!defaultValue(
        value: ri!labelPosition,
        default: "COLLAPSED"
      ),
      document: local!document
    ),

Hello All,

How can I open document in new window with the above code and the document names are in grid.

    5 replies

    harshitb6843
    Brainy
    Feb 27, 2024 9:44 AM UTC

    If your document records are sitting in a dedicated table, you can create a record on it and create a related action that has this documentViewerField.

    davidj137213
    Brainy
    Feb 27, 2024 11:09 AM UTC

    Could you try creating a new interface in the site (containing the documentViewerField), and for openit use a!safeLink (with full url) , with target NEW_TAB?

    rupaa0642Author
    Known Participant
    Feb 27, 2024 12:14 PM UTC

    How can I open new interface in URI with safelink. Could you give me a sample if you have.

    davidj137213
    Brainy
    Feb 27, 2024 12:16 PM UTC
    a!safeLink(
      label: "Company web site",
      uri: "<url of the task in a process instance>"
    )