Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > Utility functions

projectURL function

Scroll Prev Next More

Description

Returns the base URL of your [project in the run time, for instance http://localhost:8086 or https://website.com/project. Usually it makes sense to use it together with makePageLink() function.

Syntax

projectURL()

 

Example 1

Create a complete link to page list1 of cars table.

 

 

 

CommonFunctions.projectURL() + CommonFunctions.makePageLink( "cars", "list", null, new XVar("page", "list1"))  

 

Returns https://website.com/project/cars/list/?page=list1