Page 1 of 1
V15 VL-Web: How to get the number of records in the list(#PRIM_LIST).
Posted: Fri Oct 08, 2021 3:50 pm
by Rieko Saitoh
Hi,
I would like to get the number of records in the list(#PRIM_LIST) displayed on the web page. Is there any way?
(I'm looking for a method other than counting one by one with "Selectlist".)
Thanks in advance,
Rieko
Re: V15 VL-Web: How to get the number of records in the list(#PRIM_LIST).
Posted: Sat Oct 09, 2021 12:00 am
by Dino
Hi
Yes, use
like in this example:
Code: Select all
Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME<MaterialDesignBlue>) Height(488) Width(752)
Define_Com Class(#PRIM_LIST) Name(#List) Displayposition(1) Height(400) Left(0) Parent(#COM_OWNER) Tabposition(1) Top(0) Width(800) Rowlines(False) Columnlines(False) Rowheight(32)
Define_Com Class(#PRIM_LIST.String) Name(#ListColumn1) Columnwidth(140) Displayposition(1) Parent(#List) Sortonclick(True) Source(#EMPNO)
Evtroutine Handling(#Com_owner.Initialize)
Inz_List Named(#List) Num_Entrys(314)
#sys_web.alert Caption(#List.Items.ItemCount.asstring)
Endroutine
End_Com
Re: V15 VL-Web: How to get the number of records in the list(#PRIM_LIST).
Posted: Mon Oct 11, 2021 4:15 pm
by Rieko Saitoh
Hi Dino,
Thank you for your reply.
I was able to achieve it by the method you taught me.
Thank you for your kind support!!
Best regards,
Rieko Saitoh