API context methods

Context class methods

This document lists the dedicated additional methods of the context used to manage context resources.

Access to a default site per module

The method AGETPRFFCYDEF returns a status ([V]CST_AOK, [V]CST_ERROR) and has the following parameters:
* First, an instance in which the error structure will be filled if an error occurs.
* Second, a short integer value representing the module (local menu 14).
* Third, a character variable that returns the site.

Example

#### Initialisation of a site in a document (this instance) with the default financial site (module #2)Local Char MYSITE(10)Local Integer RETVALRETVAL=this.ACTX.AGETPRFFCYDEF(this,2,MYSITE)this.SITE=MYSITEReturn