Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

From v11 onwards

For version v11 onwards, the syntax for the displayExpr is changed.

If the URL is https://demo.openspecimen.org/ui-app/#/cp-view/734/participants/6840/visit/54017/specimen/193275/overview then the displayExpr is as below

Code Block
//Example Code
{
      "name" : "calcSpecimen.computedUrl",
      "caption" : "URL",
      "type" : "text",
      "displayExpr" : "'https://demo.openspecimen.org/ui-app/#/cp-view/' + cpr.cpId + '/participants/' + cpr.id + '/visit/' + specimen.visitId + '/specimen/' + specimen.id + '/overview'",
      "linkText" : "View Image"
},

Before v11

From v10.2 onwards , on the JSON-configured overview page, calculated fields can be used to display the hyperlinked URLs.

...