Previous Topic

Book Contents

Book Index

Next Topic

Getting Read Limit

To get read limit settings:

Application.getReadLimit(boolean aCurrentClient, boolean aCurrentUser, int aLimitType)

Attempts to find out a read limit according to the given parameters. If the read limit you are asking for was not defined, the method returns LIMIT_UNDEFINED_VALUE.

Note: if aCurrentUser is set to TRUE, aCurrentClient is ignored.

To get read limit settings that apply to the current user:

Application.getReadLimit(int aLimitType)

Returns a given read limit for the current user. If this has not been specified, returns read limit for the current client (A region dividing objects in the databas. The ability to support Client allows a company to create several completely independent and separate regions within one Valuemation database. Each client then has its own data and configuration and can work independently of the other clients. Maintaining separate regions of data is an efficient and secure way of using one installation to provide services for different clients. Users can switch clients both on logon and in the runtime during their work. The process of assigning users to clients is client mapping.), the global read limit or UNLIMITED_VALUE. If none of the previously mentioned limits has been set then it suggests that the number of objects read at a time is unlimited.

The call of the method may look as follows:

Application.getReadLimit(FALSE,TRUE,LIMIT_CATALOG)

which returns the read limit on catalogs for the current user.

See also Setting Read Limit.

See Also

Read Limit on Catalogues and Collections

Setting Read Limit

Parameters