Document in new window from record summary

Certified Senior Developer

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.

  Discussion posts and replies are publicly visible