PP.App.getImagePath

Syntax

getImagePath(path: String);

Parameters

path. String to add after the returned value. Optional parameter.

Description

The getImagePath method returns path to the icons folder.

Comments

The method returns a value of the String type.

Example

Executing the example requires that an express report is opened. The scenario specified below must be started in the browser console.

Specify a new path to the icons folder, URL and name of the current page, and also the list of available languages:

console.log("path to icons folder: " + PP.App.getImagePath());
// Get current unit
var activeModule = PP.App.getActiveModule("Olap");
// Get name of the page with loaded unit
var moduleUrl = PP.App.getModuleUrl(activeModule.Data);
console.log("Page with the current unit: " + moduleUrl);

After executing the example the browser console displays new path to the icons folder and name of the current page:

Path to icons folder: ../build/img/
Page with the current unit: olap.html

See also:

PP.App