{{sidenavigation.sidenavigationExpandLabel}}
{{getMsg('Help_YouAreHere')}}: {{page.title}} {{page.title}}
{{$root.getMsg("downLoadHelpAsPdf")}} {{helpModel.downloadHelpPdfDataStatus}}

StorexxxVar \ FetchxxxVar

With the StorexxxVar and FetchxxxVar functions it is possible to exchange values between formulas in main and subreport. Values from a subreport and the main report can be passed to other subreports and vice versa.

Unlike shared variables, it is possible to use dynamic keys like database fields or parameter field values.

StorexxxVar functions

The following functions are available to store values:

StoreBooleanVar( key, BooleanValue )
StoreCurrencyVar( key, CurrencyValue )
StoreDateVar( key, DateValue )
StoreNumberVar( key, NumberValue )
StoreStringVar( key, StringValue )

Parameters:

key Case sensitive name to identify the value. Can be a dynamic name, e.g. a database field.
xxxValue The value for the specified key.

Returns:

The value of the specified key.

FetchxxxVar functions

The following functions are available to fetch values:

FetchBooleanVar( key )
FetchCurrencyVar( key )
FetchDateVar( key )
FetchNumberVar( key )
FetchStringVar( key )

Parameters:

key Case sensitive name to identify the value. Can be a dynamic name, e.g. a database field.

Returns:

The value of the specified key.

Examples:

// Formula "Initialize" should be placed in a section of the main report 
// that is above to the section containing the subreport. 
StoreNumberVar( "x", 0 )
// Formula "Summarize" should be placed in a section of the subreport.
StoreNumberVar( "x", FetchNumberVar("x") + 1 )
// Formula "Print Value" can be used in sections below the subreport. 
FetchNumberVar( "x" )
i-net Clear Reports
This application uses cookies to allow login. By continuing to use this application, you agree to the use of cookies.


Help - Store and Fetch Functions