How to get a PRIM_LIST with a property
Posted: Mon Sep 24, 2018 11:12 pm
Hello,
I would like to know how to pass a PRIM_LIST with a property (or is there another way) and fill it from a reusable to another
e.g. In the 1st reusable (#WEBx_C_INFO_PL) I define a list:
Define_Com Class(#PRIM_LIST) Name(#POLLST) Displayposition(2) Left(0) Parent(#ListPanel) Tabposition(2) Top(43) Width(1025) Height(222)
Define_Com Class(#PRIM_LIST.String) Name(#PLCOD) Columncaption('A') Columnwidth(139) Displayposition(7) Parent(#POLLST) Columncaptiontype(Caption) Source(#CVRCOD) Displayalignment(Center)
Define_Com Class(#PRIM_LIST.Number) Name(#PLDSC) Columncaption('B') Columnwidth(97) Displayposition(8) Parent(#POLLST) Columncaptiontype(Caption) Source(#CVRDSC) Displayalignment(Center)
then I define a property for the list:
Define_Pty Name(PR1) Get(*REFERENCE #POLLST)
however when I call the property from the second reusable and try to fill the list:
#CVRCOD := "aa"
#CVRDSC := "bb"
Add_Entry To_List(#WEBx_C_INFO_PL.PR1)
the webpage crashes:
JavaScript Syntax Error:
Unexpected token ?
thanks,
Sotiris
I would like to know how to pass a PRIM_LIST with a property (or is there another way) and fill it from a reusable to another
e.g. In the 1st reusable (#WEBx_C_INFO_PL) I define a list:
Define_Com Class(#PRIM_LIST) Name(#POLLST) Displayposition(2) Left(0) Parent(#ListPanel) Tabposition(2) Top(43) Width(1025) Height(222)
Define_Com Class(#PRIM_LIST.String) Name(#PLCOD) Columncaption('A') Columnwidth(139) Displayposition(7) Parent(#POLLST) Columncaptiontype(Caption) Source(#CVRCOD) Displayalignment(Center)
Define_Com Class(#PRIM_LIST.Number) Name(#PLDSC) Columncaption('B') Columnwidth(97) Displayposition(8) Parent(#POLLST) Columncaptiontype(Caption) Source(#CVRDSC) Displayalignment(Center)
then I define a property for the list:
Define_Pty Name(PR1) Get(*REFERENCE #POLLST)
however when I call the property from the second reusable and try to fill the list:
#CVRCOD := "aa"
#CVRDSC := "bb"
Add_Entry To_List(#WEBx_C_INFO_PL.PR1)
the webpage crashes:
JavaScript Syntax Error:
Unexpected token ?
thanks,
Sotiris