Salesforce

ProgIdx (Magic xpa 4.x)

« Go Back

Information

 
Created BySalesforce Service User
Approval Process StatusPublished
Objective
Description

ProgIdx (Magic xpa 4.x)

Returns the current index number of the program selected in the Program repository to be used in the Call Expression operation.

Syntax:

ProgIdx(name, use public)

Parameters:

name: A program name / public name in the Program repository.

use public: False refers to the program's name. True refers to the program's public name.

Returns:

The current index of the specified program in the Program repository.

Examples:

ProgIdx('Calculate', 'FALSE'LOG) or ProgIdx(A, 'TRUE'LOG) where A is an Alpha variable.

A good example of using this function, besides passing Internet parameters, is to create a Dynamic User Menu based on Program names stored in an external database. Because changing the names is not as common as changing locations inside the application – it’s a nice and elegant solution for the fully dynamic calling of programs.

See also:

The Online and Rich Client Samples projects (program TF02 and RTF02)

Reference
Attachment 
Attachment