Class

PortalServices

PortalServices(ctx, hosturl, path)

COLNEO infohub Web Portal Services
Class PortalServices provides methods to facilitate portal specific functions and services such as creating links to objects in table view or detail view.

Constructor

# new PortalServices(ctx, hosturl, path)

Create a new object for web portal services.

Parameters:
Name Type Description
ctx cnContext

Infohub context

hosturl string

URL of server, example "https://colneo.services"

path string

Path to web portal, e.g. "/cn_portal"

Since:
  • 1.0, 09.2025, jh

View Source portal/PortalServices.js, line 16

Classes

PortalServices

Methods

# getUrlForDetailView(node_shortid) → {string}

Generate link to detail view of object/node in portal

Parameters:
Name Type Description
node_shortid string

View Source portal/PortalServices.js, line 60

Link

string

# getUrlForTableView(node_shortid) → {string}

Generate link to table view of object/node in portal

Parameters:
Name Type Description
node_shortid string

View Source portal/PortalServices.js, line 46

Link

string