VL_WEB and PRIM_LIST and columncaption

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
kno_dk
Posts: 193
Joined: Tue Feb 23, 2016 12:00 am

VL_WEB and PRIM_LIST and columncaption

Post by kno_dk » Tue May 07, 2024 9:13 pm

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

adale
Posts: 142
Joined: Wed Apr 08, 2020 9:18 pm
Location: Poplarville, MS

Re: VL_WEB and PRIM_LIST and columncaption

Post by adale » Wed May 08, 2024 12:38 am

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.
Arlyn Dale
Servias LLC

René Houba
Posts: 212
Joined: Thu Nov 26, 2015 7:03 am

VL_WEB and PRIM_LIST and columncaption

Post by René Houba » Thu May 09, 2024 5:31 pm

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 1973 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 1973 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 1973 times
I will report this to our development team as a bug.
Thanks for reporting.

Kind regards,
René

René Houba
Posts: 212
Joined: Thu Nov 26, 2015 7:03 am

Re: VL_WEB and PRIM_LIST and columncaption

Post by René Houba » Mon May 13, 2024 10:41 pm

Hi Klaus,

This has been logged as a defect introduced in EPC150060.

Kind regards,
René

kno_dk
Posts: 193
Joined: Tue Feb 23, 2016 12:00 am

Re: VL_WEB and PRIM_LIST and columncaption

Post by kno_dk » Thu May 23, 2024 4:46 pm

hi.

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

René Houba
Posts: 212
Joined: Thu Nov 26, 2015 7:03 am

VL_WEB and PRIM_LIST and columncaption

Post by René Houba » Thu May 23, 2024 6:42 pm

Hi Klaus,

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

kno_dk
Posts: 193
Joined: Tue Feb 23, 2016 12:00 am

Re: VL_WEB and PRIM_LIST and columncaption

Post by kno_dk » Thu May 23, 2024 11:26 pm

Hi

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

René Houba
Posts: 212
Joined: Thu Nov 26, 2015 7:03 am

VL_WEB and PRIM_LIST and columncaption

Post by René Houba » Mon Jul 08, 2024 4:28 pm

Hi Klaus,

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

kno_dk
Posts: 193
Joined: Tue Feb 23, 2016 12:00 am

Re: VL_WEB and PRIM_LIST and columncaption

Post by kno_dk » Mon Jul 08, 2024 6:47 pm

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

René Houba
Posts: 212
Joined: Thu Nov 26, 2015 7:03 am

Re: VL_WEB and PRIM_LIST and columncaption

Post by René Houba » Thu Jul 11, 2024 6:58 pm

Hi Klaus,

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

Kind regards,
René

Post Reply