Page 1 of 1

VL_WEB and PRIM_LIST and columncaption

Posted: Tue May 07, 2024 9:13 pm
by kno_dk
Hi.

i have a list(like the code below) in a VL_WEB page. If I resize the browser window (wider/narrower) the columncaption is not following the colum size.

Is this a problem in lansa or is it Iin my code?

I am on V150060.

Begin_Com Role(*EXTENDS #PRIM_WEB) Theme(#SYS_THEME<MaterialDesignBlue>) Layoutmanager(#Layout1)

Define_Com Class(#PRIM_TBLO) Name(#Layout1)
Define_Com Class(#PRIM_TBLO.Row) Name(#Layout1Row1) Displayposition(1) Parent(#Layout1)
Define_Com Class(#PRIM_TBLO.Column) Name(#Layout1Column1) Displayposition(1) Parent(#Layout1)
Define_Com Class(#PRIM_TBLO.Item) Name(#Layout1Item1) Alignment(TopLeft) Column(#Layout1Column1) Manage(#List) Parent(#Layout1) Row(#Layout1Row1) Sizing(ContentHeightFitToWidth)

Define_Com Class(#PRIM_LIST) Name(#List) Columnheaderheight(48) Columnlines(False) Displayposition(1) Height(345) Left(0) Parent(#COM_OWNER) Rowheight(48) Tabposition(1) Top(0) Width(1200)
Define_Com Class(#PRIM_LIST.Label) Name(#ListColumn1) Caption('Text') Displayposition(1) Parent(#List) Columnunits(Proportion) Columncaption('Text 1') Columncaptiontype(Caption)
Define_Com Class(#PRIM_LIST.Number) Name(#ListColumn2) Columnwidth(130) Displayposition(2) Parent(#List) Sortonclick(True) Source(#STD_NUM)
Define_Com Class(#PRIM_LIST.String) Name(#ListColumn3) Displayposition(3) Parent(#List) Sortonclick(True) Source(#STD_STRNG) Columnunits(Proportion)

Evtroutine Handling(#Com_owner.Initialize)
Clr_List Named(#List)
Begin_Loop Using(#listcount) To(10)

#ListColumn1.Caption := ('this is er en test &1 ').Substitute( #listcount.AsDisplayString( EditCode_Z ) )
#std_num := #LISTCOUNT
#STD_STRNG := ('this is er en test again &1 ').Substitute( #listcount.AsDisplayString( EditCode_Z ) )
Add_Entry To_List(#List)
End_Loop
Endroutine

End_Com

Re: VL_WEB and PRIM_LIST and columncaption

Posted: Wed May 08, 2024 12:38 am
by adale
Interesting.
I re-created your list on a web page (also on 150060 as well), not a copy of your source, and I see the same result. The list builds, and if you resize the browser, the column data re-sizes, but the column header width's do not. If you refresh the browser, then the column header widths will resize accordingly.
I tried checking some of our older WAMs that had lists, but those did not have the column widths set to proportional, they were all set fixed width, so I am not sure if this has always been the case, or something new.

I have to wonder if this has something to do with the layout manager setting for the .Item (the list) and the sizing parm (ContentHeightFitToWidth). Does this parm only get read on a page load (or refresh) and not a page resize? But then why does the column data get resized, but not the column headers?

Someone more familiar with the deeper operations of Lansa will need to answer this one.

VL_WEB and PRIM_LIST and columncaption

Posted: Thu May 09, 2024 5:31 pm
by René Houba
Hi Klaus,

I checked this and it seems that this problem is introduced in EPC150060. I tested in EPC150050 as well and don't have this issue.

When you execute (start) your example in VL Web EPC150050:
PRIM_LIST column headings problem VL Web EPC150060 (1).JPG
PRIM_LIST column headings problem VL Web EPC150060 (1).JPG (96.46 KiB) Viewed 47917 times
And resize the page (make is smaller for example), all is OK, the column resize is activated as it should be:
PRIM_LIST column headings problem VL Web EPC150060 (2).JPG
PRIM_LIST column headings problem VL Web EPC150060 (2).JPG (96.46 KiB) Viewed 47917 times
Where is EPC150060 the column heading resize is not activated:
PRIM_LIST column headings problem VL Web EPC150060 (3).JPG
PRIM_LIST column headings problem VL Web EPC150060 (3).JPG (79.66 KiB) Viewed 47917 times
I will report this to our development team as a bug.
Thanks for reporting.

Kind regards,
René

Re: VL_WEB and PRIM_LIST and columncaption

Posted: Mon May 13, 2024 10:41 pm
by René Houba
Hi Klaus,

This has been logged as a defect introduced in EPC150060.

Kind regards,
René

Re: VL_WEB and PRIM_LIST and columncaption

Posted: Thu May 23, 2024 4:46 pm
by kno_dk
hi.

will there be a hotfix for this issue? if yes, could you inform me when it is ready?
/klaus

VL_WEB and PRIM_LIST and columncaption

Posted: Thu May 23, 2024 6:42 pm
by René Houba
Hi Klaus,

They didn't listed this as "urgent", so I think it will be fixed in the next EPC or so....

Re: VL_WEB and PRIM_LIST and columncaption

Posted: Thu May 23, 2024 11:26 pm
by kno_dk
Hi

This is not very pretty to look at when we show customers the application :cry:

VL_WEB and PRIM_LIST and columncaption

Posted: Mon Jul 08, 2024 4:28 pm
by René Houba
Hi Klaus,

Do you want me to ask if they are willing to create a patch for this?

Re: VL_WEB and PRIM_LIST and columncaption

Posted: Mon Jul 08, 2024 6:47 pm
by kno_dk
Hi Rene.

Yes please.

Do you know when EPC 150070 is ready? if it is nearly ready, and the fix is in there then I will wait.

/klaus

Re: VL_WEB and PRIM_LIST and columncaption

Posted: Thu Jul 11, 2024 6:58 pm
by René Houba
Hi Klaus,

The fix for this issue is in EPC150070 and EPC150070 is currently in testing.

Kind regards,
René