int MGOgetaffiliations (Validation **lst, Validation *val)
The MGOgetaffiliations() function returns a list of affiliation records. Information is passed through val and returned through the linked list lst. The required and optional selection criteria fields are (the values in brackets indicate which validation tables are searched through when the field is specified):
val.uwnetid is the uwnetid name. val.validid is the validation id. val.ein is the employee number. val.ssn is the social security number. val.studentid is the student number. val.account is the AVF account name. val.system_key is the student system key value. val.clinicianid is the clinician id. val.advanceid is the advance id. val.regid is the registry id. You must specify either a uwnetid or one (or more) of validid, ein, ssn, studentid, account, system_key, clinicianid, advanceid, regid. val.lname is the last name. Wildcarding is supported by placing a "%" to represent zero or more characters, or a "_" to represent a single, non-blank character. val.source_code is the validation source reference code. val.status_code is the affiliation status reference code. The following fields are set for each selected affiliation:
Returns the number of records selected upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).
rmango
MGOaddaffiliation(), MGOfreevalidation(), MGOselraffstatus(), MGOselrvalsource(), MGOzero()