shareView

To return a URL of a given view

With this function, you can share a table view per script. If you don't specify the view to be shared, the default view will be selected.

Optionally, you can also define the format, for example, PDF, HTML, CSV, XLSX, or JSON.

This function doesn't work in a formula field because it's modifying data.

This function will return a link, which can be saved in a URL or text field.

Syntax

shareView(string)

shareView(string, string)

shareView(string, JSON)

shareView(string, string, JSON)

Return

link

Examples

shareView(myTable) To return an URL of the default view for sharing.

shareView("Events")

Result: https://share.ninox.com/q941raua14b8nt5mo4lkzg9lplb2j13isjod

shareView(myTable, myView) To return an URL of a given view of a given table for sharing.

shareView("Events", "New York")

Result: https://share.ninox.com/t3h0oxlbpyfnlxg7xsqmkz5mceiyo9nyczj1

shareView(myTable, options) To return an URL of a given table in a given format (PDF, HTML, CSV, XLSX, or JSON) for sharing.

shareView(myTable, myView, options) To return an URL of a given view of a given table in a given format (PDF, HTML, CSV, XLSX, or JSON) for sharing.

URL := shareView("Events", "San Francisco", {
		contentType: "pdf"
	})

Result: https://share.ninox.com/xqcw2nwmbicmu3b64wwcf4u1haaully570pn

See also

unshareView, which unshares a given view of a given table.

unshareAllViews, which unshares all views of a given table.

Last updated