NAME: ORWU NEWPERS TAG: NEWPERS
ROUTINE: ORWU RETURN VALUE TYPE: ARRAY
DESCRIPTION:
Returns a set of New Person file entries for use in a long list box.
Code:
NEWPERS(ORY,ORFROM,ORDIR,ORKEY,ORDATE,ORVIZ,ORALL) ; Return a set of names from
the NEW PERSON file.
; SLC/PKS: Code moved to ORWU1 on 12/3/2002.
D NP1^ORWU1
Q
Generally NP1 uses the "AUSER" xref on ^VA(200,
NP1 notes:
; PARAMS from NEWPERS^ORWU call:
; .ORY=returned list.
; ORDATE=Checks for an active person class on this date (optional).
; ORDIR=Direction to move through the x-ref with $O.
; ORFROM=Starting name for this set.
; ORKEY=Screen users by security key (optional).
; ORVIZ=If true, includes RDV users; otherwise not (optional).
;
ORALL isn't documented, but basically it uses the "B" xref on ^VA(200,
ORVIZ also uses the same "B" xref, but if ORALL=0 it skips a
$$PROVIDER^XUSER screen on people
so you need to look at the actual broker call to see if the ORVIZ
variable is non-zero and the ORALL variable
is non-zero to know which choice happens.
so since the
Dave, (and anyone else)
Thanks for looking at this with me.
The line in NP!^ORWU1 is below
..I +$G(ORALLUSE)=0,'$$PROVIDER^XUSER(ORIEN1) Q ; Terminated users.
I think this says that if ORALLUSE=0, then check $
$PROVIDER^XUSER(ORIEN1), and if that is false, then quit (don't return
user on list.)
-skip
-skip