SCRP SELECTION SOURCE (44)    REMOTE PROCEDURE (8994)

Name Value
NAME SCRP SELECTION SOURCE
TAG GETDATA
ROUTINE SCRPBK1
RETURN VALUE TYPE GLOBAL ARRAY
AVAILABILITY RESTRICTED
WORD WRAP ON TRUE
DESCRIPTION
This RPC returns a list of entries that is displayed
to the user as part of the entry selection process.
This process occurs during query template setup. It
involves the user indicating which divsions, teams,
roles, clinics, practitioners and user classes s/he
desires information about on a report.
INPUT PARAMETER
  • ENTITY TYPE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   20
    REQUIRED:   YES
    DESCRIPTION:   
    This parameter indicates the entity type of the slecetion.
    
    
    The following types are possible:
           DIVISION
           TEAM
           PRACTITIONER
           ROLE
           CLINIC
           USER CLASS
    
  • REPORT ID
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   20
    REQUIRED:   YES
    DESCRIPTION:   
    Internal entry number of the report definition.
    
    Each report has a differenrt set of criteria that
    the query specification must meet. This affects
    which entity entries are allowed to be chosen by
    the user.
    
  • REPORT NAME
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   50
    REQUIRED:   YES
    DESCRIPTION:   
    Name of the report.
    
  • SEARCH TEXT
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   50
    REQUIRED:   YES
    DESCRIPTION:   
    This parameter contains the free-text entered by
    the user that is compared to the entity entry's name
    to filter out possible choices. If null, then
    all valid entries are presented to the user.
    
  • SELECTIONS
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    DESCRIPTION:   
    This array contains all of the selections already made
    used to filter out inapproiate teams during a team
    array build.
    by the user for the current query template. This list
    of selections is then used to filter out possible selections
    for the current 'entity type' being requested.
    
    For example, often the report criteria requires one or
    more teams must be selected. However, the team must be
    in one of the divisions already selected by the user.
    In this case, the user's division selections are
    
RETURN PARAMETER DESCRIPTION
Using SCDATA to represent the array, the following is returned:
    SCDATA(1...n) -> <name of entry> ^ <type of entity> ^ <internal entry number of entity>