SCRP QUERY VALIDATE (47)    REMOTE PROCEDURE (8994)

Name Value
NAME SCRP QUERY VALIDATE
TAG VALID
ROUTINE SCRPBK4
RETURN VALUE TYPE ARRAY
AVAILABILITY RESTRICTED
DESCRIPTION
This RPC will validate the criteria specified in the
query template definiton passed in as part of the call.
The validation checks the criteria against what data
is required the report assoicated with the template.

If the validation check fails, then the errors found
are returned as part of the RPC, otherwise a success
flag(1) is returned.
INPUT PARAMETER
  • QUERY DEFINITION
    PARAMETER TYPE:   LIST
    REQUIRED:   YES
    DESCRIPTION:   
    This parameter contains the complete definition of the query
    template. The format of the definition data is defined by
    the TScQryDef.BuildQuery method on the client.
    
  • VALIDATE MODE
    PARAMETER TYPE:   LITERAL
    MAXIMUM DATA LENGTH:   50
    REQUIRED:   YES
    DESCRIPTION:   
    This parameter indicates whether all validation checks
    need to be made(FULL) or only those checks related to
    entity entry selection(SELECTIONS) should be made.
    
RETURN PARAMETER DESCRIPTION
Using SCDATA to represent the array, the following is returned:
    SCDATA(0) -> 1 - meaning validation checks found no errors
                        
                --- OR ---

    SCDATA(0) -> 0 - meaning errors found ^ <number of errors>
SCDATA(1...n) -> error text