0% found this document useful (0 votes)
194 views4 pages

Pdms List Error Capture

This document contains code for a callback command that adds elements to a multiselect list. It defines variables, checks conditions, handles user input, and appends selected elements. An error occurs when trying to append a non-existent array element.

Uploaded by

hnguyen_698971
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
194 views4 pages

Pdms List Error Capture

This document contains code for a callback command that adds elements to a multiselect list. It defines variables, checks conditions, handles user input, and appends selected elements. An error occurs when trying to append a non-existent array element.

Uploaded by

hnguyen_698971
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as XLSX, PDF, TXT or read online on Scribd
You are on page 1/ 4

Content of Command

$R102
-> ENTER [1] Callback Command
[1] CALLIB MLIST-AR ADD MULT
-> ENTER [2] %PDMSUI%/CLIB/FILES/
[1] $($)
[13] $($)
[17] $:debug$:
[31] $d1=ADD
[32] $d2=CE
[33] $d4=False
[37] var !ACT
|$1|
[38] var !OPT
|$2|
[39] var !SEL
|$3|
[40] var !VAL
|1|
[41] var !NAME
|!!CDLIST1|
[42] var !!CDLIST0 delete
[43] var USER _CDCLIST REFE 1
[44] var !REFE REFE
[47] if(1 eq 0) then
[49] endif
[52] if(|MULT| eq |CE|) then
[56] elseif (|MULT| eq |ALL|) then
[60] elseif (|MULT| eq |MEMB|) then
[64] elseif (|MULT| eq |MULT|) then
[66] CALLIB RPICKLOOP $<Identify
-Escape-$>
-> ENTER [3] %PDMSUI%/CLIB/FILES/
[1] $($)
[13] $($)
[37] $:debug$:
[39] $d1=Identify Element or -Escape
[40] $d2=
[43] var !STRNG |$1|
[44] var !ARG2 |$2|
[45] !colour = !arg2.real()
[46] handle (2,441)
[46] handle (2,441)
[48] endhandle
[49] if (!ARG2 eq '') then
[50] !HCOL = !!gphColOpt.highlight
-> ENTER [4] gphcolopt.HIGHLIGHT
[950] define method .highlight() is CO
[952] return !this.highlight
<- EXIT [4] gphcolopt.HIGHLIGHT
- RESUME [3] %PDMSUI%/CLIB/FILES/
[51] else
[62] var !GTYP |$3|
[63] var !CFUNC |$4|
[64] var !GTYPE (part(||,1))
[65] var !GVAR |!!CDINCOMP|
[68] var !!CDPARTN delete
[69] var !!CDWARTN delete
[72] var !!CDRTNSTATUS (0)

<- EXIT [4] gphcolopt.HIGHLIGHT


- RESUME [3] %PDMSUI%/CLIB/FILES/
[51] else
[62] var !GTYP |$3|
[63] var !CFUNC |$4|
[64] var !GTYPE (part(||,1))
[65] var !GVAR |!!CDINCOMP|
[68] var !!CDPARTN delete
[69] var !!CDWARTN delete
[72] var !!CDRTNSTATUS (0)
[73] var !!CDRTNTEXT ||
[76] prompt dismiss
[77] prompt of
[80] do !INDX
[82] label /REPICK
[84] prompt load escape |Identify el
-Escape-|
[85] var !PICK PICK
[86] handle ANY
[86] handle ANY
[88] endhandle
[91] if(|| neq ||) then
[113] endif
[114] label /PASSED
[117] if(not empty(||)) then
[120]
handle ANY
[124] endif
[127] do !INDXA indices !OBJE
[137] var !OBJE append |$!PICK[1]|
<- EXIT [3] %PDMSUI%/CLIB/FILES/R
- RESUME [2] %PDMSUI%/CLIB/FILES/
<- EXIT [2] %PDMSUI%/CLIB/FILES/M
- RESUME [1] Callback Command
<- EXIT [1] Callback Command
(2,752) Array element 1 does not ex
In line 137 of Macro %PDMSUI
%/CLIB/FILES/RPICKLOOP
var !OBJE append |$!PICK[1]|
Called from line 66 of Macro %PDMSU
%/CLIB/FILES/MLIST-AR
CALLIB RPICKLOOP $<Identify elem
-Escape-$>
Called from line 1 of Command/Form
Command
CALLIB MLIST-AR ADD MULT

Command

] Callback Command
LIST-AR ADD MULT
] %PDMSUI%/CLIB/FILES/MLIST-AR

$:
D

se
T
|$1|
T
|$2|
L
|$3|
L
|1|
ME
|!!CDLIST1|
DLIST0 delete
R _CDCLIST REFE 1
FE REFE
0) then

T| eq |CE|) then
MULT| eq |ALL|) then
MULT| eq |MEMB|) then
MULT| eq |MULT|) then
B RPICKLOOP $<Identify element or

] %PDMSUI%/CLIB/FILES/RPICKLOOP

$:
ntify Element or -Escape-.

RNG |$1|
G2 |$2|
= !arg2.real()
(2,441)
(2,441)
dle
2 eq '') then
= !!gphColOpt.highlight().code
] gphcolopt.HIGHLIGHT
method .highlight() is COLOUR
n !this.highlight
gphcolopt.HIGHLIGHT
] %PDMSUI%/CLIB/FILES/RPICKLOOP

YP |$3|
UNC |$4|
YPE (part(||,1))
AR |!!CDINCOMP|
DPARTN delete
DWARTN delete
DRTNSTATUS (0)

gphcolopt.HIGHLIGHT
] %PDMSUI%/CLIB/FILES/RPICKLOOP

YP |$3|
UNC |$4|
YPE (part(||,1))
AR |!!CDINCOMP|
DPARTN delete
DWARTN delete
DRTNSTATUS (0)
DRTNTEXT ||
dismiss
of
X
REPICK
t load escape |Identify element or

CK PICK
e ANY
e ANY
ndle
q ||) then

/PASSED
empty(||)) then
dle ANY

NDXA indices !OBJE


OBJE append |$!PICK[1]|
%PDMSUI%/CLIB/FILES/RPICKLOOP
] %PDMSUI%/CLIB/FILES/MLIST-AR
%PDMSUI%/CLIB/FILES/MLIST-AR
] Callback Command
Callback Command
ay element 1 does not exist
f Macro %PDMSUI
/RPICKLOOP
ppend |$!PICK[1]|
line 66 of Macro %PDMSUI
/MLIST-AR
CKLOOP $<Identify element or

line 1 of Command/Form Callback

T-AR ADD MULT

You might also like