PxPlus User Forum

Main Board => Discussions => Programming => Topic started by: clayton.fast on December 19, 2020, 09:42:29 PM

Title: No event firing in Report View List_Box
Post by: clayton.fast on December 19, 2020, 09:42:29 PM
The CHANGE<ctl.name> is not being executed in a class.  I'm using a NOMADS panel.

I'm sure the answer to this is simple but I haven't figured it out.  I attached screenshots of the List_Box properties from NOMADS.

Here's the program starting the class:
0010 REM "era.pvx
0020 SETERR ERROR_TRAP
0030 LET SESSION=NEW("session")
0040 LET ERA=NEW("era")
0050 LET RESULT=ERA'PROCESS()

Here's the FUNCTION from era.pvc:  (It doesn't get here when I click on a row in the List_Box.  It does fire until I double click on a row)
00880 FUNCTION CHANGELB_CLAIMS()
00890 SETERR ERROR_TRAP
00900 GOSUB SET_IOLISTS
00910 LET LC=LB_CLAIMS.CTL,L1=LC'VALUE,L2=LC'ITEM,L3=LC'CURRENTITEM,LC$=TRY(LC'ITEMTEXT$,"")
00920 LET TT$="Control id ="+STR(LC)+"  Value = "+STR(L1)+"  Item Num "+STR(L2)+"  Item Text = "+LC$+"  Current Item = "+STR(L3)
00930 MSGBOX TT$
00940 RETURN

I attached the Nomads List_Box properties.

I'm developing on Win 10 and running PxPlus 2019