Skip to main content
February 27, 2024
Question

Document in new window from record summary

  • February 27, 2024
  • 5 replies
  • 0 views

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
    February 27, 2024

    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
    February 27, 2024

    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
    February 27, 2024

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

    davidj137213
    February 27, 2024
    a!safeLink(
      label: "Company web site",
      uri: "<url of the task in a process instance>"
    )