Cloud Software Group, Inc. EBX®
Documentation > Developer Guide > EBX® Script > API
Navigation modeDocumentation > Developer Guide > EBX® Script > API

Unit core.resource

This script unit methods that generates resource references compatible with the schema type ods:resource.

Example:

uses core.resource as resource;

export function getValue(): typeof record.functions.ResourceValue
begin
  return resource.toImage('ebx-test','on_anim_wait.gif');
end

Methods

function toHtml(moduleName: string, filePath: string): string

Returns a reference to an image resource.

function toIcon(moduleName: string, filePath: string): string

Returns a reference to an icon resource.

function toImage(moduleName: string, filePath: string): string

Returns a reference to an image resource.

function toJavaScript(moduleName: string, filePath: string): string

Returns a reference to an JavaScript file resource.

function toStyleSheet(moduleName: string, filePath: string): string

Returns a reference to an style sheet file resource.

toHtml

function toHtml(moduleName: string, filePath: string): string

Returns a reference to an image resource.

Parameters :

moduleName: the module name.

filePath: the local file path for the resource.

Return :

the resource string compatible with the schema type ods:resource.

Can be used in: Script tasks, Table triggers, Function fields

toIcon

function toIcon(moduleName: string, filePath: string): string

Returns a reference to an icon resource.

Parameters :

moduleName: the module name.

filePath: the local file path for the resource.

Return :

the resource string compatible with the schema type ods:resource.

Can be used in: Script tasks, Table triggers, Function fields

toImage

function toImage(moduleName: string, filePath: string): string

Returns a reference to an image resource.

Parameters :

moduleName: the module name.

filePath: the local file path for the resource.

Return :

the resource string compatible with the schema type ods:resource.

Can be used in: Script tasks, Table triggers, Function fields

toJavaScript

function toJavaScript(moduleName: string, filePath: string): string

Returns a reference to an JavaScript file resource.

Parameters :

moduleName: the module name.

filePath: the local file path for the resource.

Return :

the resource string compatible with the schema type ods:resource.

Can be used in: Script tasks, Table triggers, Function fields

toStyleSheet

function toStyleSheet(moduleName: string, filePath: string): string

Returns a reference to an style sheet file resource.

Parameters :

moduleName: the module name.

filePath: the local file path for the resource.

Return :

the resource string compatible with the schema type ods:resource.

Can be used in: Script tasks, Table triggers, Function fields

Documentation > Developer Guide > EBX® Script > API