Views:

Description

Returns the xCache value for the given key for the Global xCache. When looking up Date sensitive values the third parameter can be specified to match against a specific date range in the xCache record.

 

Signature Basic

xCacheGetGlobal('key')

 

Signature Full

xCacheGetGlobal('key', 'defaultvalue', 'dateindex')

 

Example 1

xCacheGetGlobal('Messages_Greeting') Returns Hello

 

Example 2

xCacheGetGlobal('Messages_Greeting', 'Hola') Returns Hola, if no matching xCache record for the language specified in the users profile.

 

Example 3

xCacheGetGlobal('Rates_VAT', '0', [invoice.duedate]) Returns 23.0

 

Parameters

Name Type Description Required
key xxxx xxxx xxxx
defaultvalue xxxx xxxx xxxx