Appendix B: Event Points and Logic Assignment

  

DEVELOPER

The @LOGIC_POINTS attribute on the Function Structure File contains the Logics ID’s assigned to the Event Points of each object. This information is used by the Events view and it is also used to determine logic assignments.

When logics are assigned to or removed from Function Headers, Document Format Groups, Cycles, Dynamic objects, Files or Control Breaks, both the attribute @LOGIC_POINTS on the Function Structure File, and the Logic ID on the primary file for that object require updating. This also applies to the Function Key Value for Dynamic s and Dynamic icons.

To aid the developer, a Helper Function has been created to do this. Please refer to PROIV Developer Helper Functions for more information on using the VIPEVENT Helper Function.

There are 28 different Event Point assignments which PROIV Developer stores in this attribute. Because the structure information is held in memory when editing a function, this attribute was optimised to keep the memory requirements to a minimum.

The string positions used to store the Logic ID’s against each Event Point is defined below:

Event Point

Event Name

String Position

File

Variable

1

Function - On Entry

1-3

VIPBM01

@FLGCIN

2

Screen Cycles - On Entry

1-3

VIPBM02

@LSENTLGC

3

Screen Cycles - Mode,

Document/Report/Update Cycles - On Entry

4-6

VIPBM02

@LSRLG

4

Cycle - Sort/Select

7-9

VIPBM02

@SRT-LGC

[5]

[Dynamics - Function Key]

24-28=�?Fn�? + key

VIPBM05

@GUI_FIELD_REPLY_FNKEY

6

Dynamics - On Display

13-15

VIPBM05

@DISP_LGC

7

Dynamics - On Focus

4-6

VIPBM05

@LSRFLGB

8

Dynamics - On Window

7-9

VIPBM05

@WINLGC

9

Dynamics - General Validation

21-52

VIPBM05

@LSRSC

10

Dynamics - Custom Validation

10-12

VIPBM05

@LSRFGC

11

Dynamics - After Field / Lost Focus

1-3

VIPBM05

@LSRFLG

12

File Accessor - Key Mapping (Sort/Select)

19-21

VIPBM06

@SRUSSB

13

File Accessor - Before Read

1-3

VIPBM06

@SRULBR

14

File Accessor - Read Lock

22-24

VIPBM06

@SRURAL

15

File Accessor - Read Error

4-6

VIPBM06

@SRUARE

16

File Accessor - After Read

7-9

VIPBM06

@SRUAR

17

File Accessor - Before Write

10-12

VIPBM06

@SRUBW

18

File Accessor - Write Error

16-18

VIPBM06

@SRUAWE

19

File Accessor - After Write

13-15

VIPBM06

@SRUAWNE

20

Cycle - EOD/Cancel

10-12

VIPBM02

@EOD_CANLGC

21

Cycle - LS Exit

13-15

VIPBM02

@LSREXLG

22

Function - On Exit

4-6

VIPBM01

@FLGCOUT

23

Menu Selection Logic

7-9

VIPBM01

@MSLGCID

24

CB - Logic Before

1-3

VIPBM07

@CBL

25

CB - Logic After

4-6

VIPBM07

@CBLA

26

CB - Logic Next Record

7-9

VIPBM07

@CBLNI

27

Document Format Header - Logic Before

1-3

VIPBM08

@HDR_LOGIC_BEFORE

28

Document Format Header - Logic After

4-6

VIPBM08

@HDR_LOGIC_AFTER


For Dynamic s and Dynamic icons, the @LOGIC_POINTS attribute also holds the assigned Function Key Value. The Function Key Value is held as the literal “Fn�? followed by the alpha conversion of the Function Key. In the case of Function Key 0 (zero) the string must hold a 0 (zero) and not a space.

If the @LOGIC_POINTS string is being updated directly by any utilities that have been migrated from PROIV Version 5, then note the changes to the substring positions for Event Points 6, 9 and 10. These changes are due to the increase in length of the Global Logic name used on the General Validation Event Point.

The Event Point values of 29, 30, 31, 32, 33 and 34 are only used when using the VIPEVENT0 helper to assign logic to an ActiveX event, Function Key, Action Control, Static Icon Drop Event or an Open Ajax Event. Their Logic ID assignments are not held on the Structure File, but they are listed below for completeness:

Event Point

Event Name

String Position

File

Variable

29

ActiveX Control Event: Function logic or

Global Logic assignment

n/a

VIPBM41

@EV_LOGIC_NAME

30

Function Key Event: Function Logic or

Global Logic assignment

n/a

VIPBM03

@CYCLE_LOGIC_ID   or

@CYCLE_GLOBAL_LOGIC_ID

31

Action Control Event: Function Logic or

Global Logic assignment

n/a

VIPBM60

@FN_AC_LOGIC_ID or

@FN_AC_GLOBAL_LOGIC

32

Dynamics -  On Drop Source

n/a

VIPB

M19

@PROPERTY_VALUE

33

Dynamics – On Drop Target

n/a

VIPBM19

@PROPERTY_VALUE

34

Open Ajax Event

n/a

VIPRO01

@OAES_LOCAL_LOGIC or

@OAES_GLOBAL_LOGIC

The various Event Points are not supported by all objects in PROIV Developer.  The following tables show the Event Points supported by each Object Type. For descriptions of each Object Code, refer to Object Code Values.

Event Points supported by Document Objects

 

Boot Code

Object Code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

1

D

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

1

GD

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

2

MTD

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

2

MTPD

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

OTD

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

OTPD

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

3

DAHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

3

DDHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

3

DEHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

3

DFHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

3

DHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

3

DPHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

3

DSHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

5

DFA

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

6

DCB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

 

 

7

DCBFA

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

8

DACBHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

8

DBCBHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

9

D_DTEXT

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

D_DUMMY

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

D_DVAR

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

D_HDRTEXT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

D_HDRVAR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

D_ENDCYCLE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Event Points supported by Menu Objects

 

Boot Code

Object Code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

1

M

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

2

MC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

MHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

M_EDITBOX

 

 

 

 

 

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

M_TEXT

 

 

 

 

 

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

MFA

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

M_ACTIVEX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

M_BOX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

M_BUTTON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

M_ICON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

M_LINE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

M_STATIC

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

M_VARIABLE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

M_ENDCYCLE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Menu functions also support Event Points 29 and 30 which are held directly against an ActiveX event or Function Key Definition, not a structural object.

 

Event Points supported by Report Objects

 

Boot Code

Object Code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

1

GR

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

1

R

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

2

MTPR

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

2

MTR

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

2

OTPR

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

2

OTR

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

3

RFHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

RHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

3

RPHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

RFA

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

6

RCB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

 

 

7

RCBFA

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

8

RACBHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

8

RBCBHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

R_DTEXT

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

R_DUMMY

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

9

R_DVAR

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

R_HDRTEXT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

R_HDRVAR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

R_ENDCYCLE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Event Points supported by Screen Objects

 

Boot Code

Object Code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

1

GS

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

1

S

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

2

MTPS

 

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

MTPW

 

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

MTS

 

Y

Y

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

MTW

 

Y

Y

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

OTPS

 

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

OTPW

 

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

OTS

 

Y

Y

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

OTW

 

Y

Y

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

SELA

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

SELF

 

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

UPD

 

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

3

SHDR

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

CHECKBOX

 

 

 

 

 

Y

Y

 

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

COMBOBOX

 

 

 

 

 

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

DUMMY

 

 

 

 

 

 

Y

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

D_ACTIVEX

 

 

 

 

 

 

Y

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

D_BUTTON

 

 

 

 

Y

Y

Y

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

D_ICON

 

 

 

 

Y

Y

Y

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

D_TEXT

 

 

 

 

 

Y

Y

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

EDITBOX

 

 

 

 

 

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

HOLD

 

 

 

 

 

 

Y

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

LISTBOX

 

 

 

 

 

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

PAGINGICON

 

 

 

 

 

 

Y

 

 

 

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

4

RADIOGROUP

 

 

 

 

 

Y

Y

 

Y

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

5

SFA

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

n/a

BOX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

LINE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

S_ACTIVEX

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

S_BUTTON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

S_ICON

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

S_TEXT

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

n/a

S_VARIABLE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

z

S_ENDCYCLE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Screen Functions also support Event Points 29 and 30 which are held directly against an ActiveX event or Function Key Definition, not a structural object.

 

Event Points supported by Update Objects

 

Boot Code

Object Code

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

1

GU

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

1

U

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

2

MTPU

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

 

 

 

 

 

 

 

2

MTU

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

OTPU

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

2

OTU

 

 

Y

Y

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

 

 

 

 

 

 

 

5

UFA

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

6

UCB

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

 

 

7

UCBFA

 

 

 

 

 

 

 

 

 

 

 

 

Y

Y

Y

Y

Y

Y

Y

 

 

 

 

 

 

 

 

 

z

U_ENDCYCLE

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Comment on this topic

Topic ID: 500662