Activity_GetResourceName()

Examples


The Activity_GetResourceName() function returns a string containing a resource’s display name.

Syntax

Activity_GetResourceName(product_ID, resource_type, resource_ID)

Parameters

product_ID An integer specifying the product ID of the dictionary where the resource is located.

resource_type – An integer specifying the type of resource. Use one of the following constants:

[spacer]

Constant

Description

FORMTYPE

Indicates a form.

TABLETYPE

Indicates a table.

GROUPTYPE

Indicates a table group.

REPORTTYPE

Indicates a report.


resource_ID An integer specifying the resource ID of the resource.

Return value

A string containing the display name of the resource.

Comments

If you implement activity tracking in your application, you can use this function in conjunction with the Security procedure to retrieve names of windows, table groups and reports accessed by the user. The Security procedure runs each time a form, report or table is accessed. The runtime engine automatically passes a product ID, resource type and resource ID in parameters to this procedure. With this information, the Activity_GetResourceName() function can determine the resource’s display name, and store the name in an activity table (see the following example).

The resource_type parameter automatically passed to the Security procedure will indicate a form, report or table group, but not an individual table. To track table access, be sure you use Dexterity Utilities to place each table into a table group.


Documentation Feedback