Page 1 of 1

Automatic row height adjustment based on content

Posted: Fri Apr 13, 2018 9:47 pm
by pravik
Hi All,

I have created right slider where data gets populated in list and gets displayed. For the columns in list i have provided wordwrap property as true, and wordwrap happens whether the row height doesn't get adjusted automatically.

Below is list and its respective column definition:

Define_Com Class(#PRIM_LIST) Name(#List1) Displayposition(1) Left(0) Parent(#CustomPanelBody) Tabposition(1) Top(8) Height(668) Width(289) Columnheaderheight(0) Rowresize(True) Visible(False) Rowsizing(Individual)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnDEPTDESC1) Columnwidth(90) Displayposition(1) Parent(#List1) Source(#DETAILS) Wordwrap(True) Columnthemedrawstyle('MediumTitle') Style(#Style1) Columnunits(Proportion) Cellsizing(ContentHeightFitToWidth)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnDEPTMENT1) Columnwidth(191) Displayposition(2) Parent(#List1) Source(#DETVAL) Wordwrap(True) Columnunits(Proportion) Cellsizing(ContentHeightFitToWidth)

Kindly let us know how do proceed with this case

Thanks & Regards,
Priya

Re: Automatic row height adjustment based on content

Posted: Tue Apr 17, 2018 4:19 pm
by pravik
Hi All,

can someone help on this!!!

Regards,
Priya

Re: Automatic row height adjustment based on content

Posted: Tue Apr 17, 2018 5:29 pm
by MarkD
Try this - it might be something like what you are trying to do:

Code: Select all

Begin_Com Role(*EXTENDS #PRIM_WEB)

Define_Com Class(#PRIM_LIST) Name(#List1) Displayposition(1) Left(48) Parent(#COM_OWNER) Tabposition(1) Top(24) Height(668) Width(209) Columnheaderheight(0) Rowsizing(Individual) Style(#BlueBorder)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnCOMPANY1) Columnwidth(278) Displayposition(1) Parent(#List1) Source(#VF_ELURLU) Wordwrap(True) Cellsizing(ContentHeight) Columnunits(Proportion)

Define_Com Class(#Prim_vs.Style) Name(#BlueBorder) Borderbottom(1) Bordertop(1) Borderleft(1) Borderright(1) Bordercolor(Blue)

Define_Com Class(#Prim_phbn) Name(#TestButton) Parent(#COM_OWNER) Caption('Test') Displayposition(2) Tabposition(2) Left(304) Top(16)

Evtroutine Handling(#TestButton.Click)

#vf_elurlU := "Hello world"
Add_Entry To_List(#List1)

#vf_elurlU := "The quick brown fox jumped over the lazy dog"
Add_Entry To_List(#List1)

#vf_elurlU := "Mary had a little lamb, its fleece was white as snow. Wverywhere that Mary went the lamb was sure to go. That's all folks."
Add_Entry To_List(#List1)


Endroutine

End_Com 

Re: Automatic row height adjustment based on content

Posted: Tue Apr 17, 2018 9:14 pm
by pravik
Hi Mark,

When I tried copying the code given below as well list is getting populated and word wrap happens but the data coming in 2nd line isn't visible. It gets hidden. when we click on the populated list then it gets expanded with complete data.

Test code as per your suggestion

Begin_Com Role(*EXTENDS #VF_AC028O) Height(725)

* default panel information

Define_Com Class(*ANCESTOR) Name(#HeaderPanel) Height(25) Displayposition(4) Tabposition(3)
Define_Com Class(*ANCESTOR) Name(#CustomPanelBody) Height(700) Top(25) Displayposition(3) Tabposition(4)
Define_Com Class(*ANCESTOR) Name(#DockImage) Height(24)
Define_Com Class(*ANCESTOR) Name(#CloseImage) Height(24)

* List Definition
Define_Com Class(#PRIM_LIST) Name(#List1) Displayposition(2) Left(48) Parent(#COM_OWNER) Tabposition(2) Top(24) Height(441) Width(209) Columnheaderheight(0) Rowsizing(Individual) Style(#BlueBorder)
Define_Com Class(#PRIM_LIST.String) Name(#ColumnCOMPANY1) Columnwidth(278) Displayposition(1) Parent(#List1) Source(#VF_ELURLU) Wordwrap(True) Cellsizing(ContentHeight) Columnunits(Proportion)
Define_Com Class(#Prim_vs.Style) Name(#BlueBorder) Borderbottom(1) Bordertop(1) Borderleft(1) Borderright(1) Bordercolor(Blue)
Define_Com Class(#PRIM_PHBN) Name(#TestButton) Caption('Test') Displayposition(1) Left(72) Parent(#COM_OWNER) Tabposition(1) Top(511)

Evtroutine Handling(#TestButton.Click)
#vf_elurlU := "Hello world"
Add_Entry To_List(#List1)
#vf_elurlU := "The quick brown fox jumped over the lazy dog"
Add_Entry To_List(#List1)
#vf_elurlU := "Mary had a little lamb, its fleece was white as snow. Wverywhere that Mary went the lamb was sure to go. That's all folks."
Add_Entry To_List(#List1)
Endroutine

End_Com

Re: Automatic row height adjustment based on content

Posted: Wed Apr 18, 2018 8:03 am
by MarkD
Can you try running the exact same code in a standalone web page.

When I do that and press the Test button I see this:
image1.PNG
image1.PNG (6.59 KiB) Viewed 3364 times
What do you see when using the same code?

Re: Automatic row height adjustment based on content

Posted: Wed Apr 18, 2018 8:07 am
by MarkD
I don't think parent(#Com_Owner) is correct for the list or the test button.
See if parent(#CustomPanelBody) works.

Re: Automatic row height adjustment based on content

Posted: Wed Apr 18, 2018 2:11 pm
by pravik
Hi Mark,

I tried using parent(#CustomPanelBody) as well still same. Have attached the screenshots.

Re: Automatic row height adjustment based on content

Posted: Wed Apr 18, 2018 2:52 pm
by MarkD
What happens when you run the code sample as a standalone form?
Do you see the same as I do?

Re: Automatic row height adjustment based on content

Posted: Wed Apr 18, 2018 4:02 pm
by pravik
Hi mark,

Even in standalone I'm getting similar screen. screen shot of the same has been attached.

Re: Automatic row height adjustment based on content

Posted: Thu Apr 19, 2018 8:46 am
by soa
Have you installed all EPCs? I had similar issues last year but they were fixed by getting current on updates.

Re: Automatic row height adjustment based on content

Posted: Thu Apr 19, 2018 9:29 am
by MarkD
See attached for a working right slider example.
Can you try that exact code and compare your results with my screen shot?
I am using V14SP2 so soa's comment is definitely a possible explanation for why we get different results.
document.docx
(49.69 KiB) Downloaded 110 times

Re: Automatic row height adjustment based on content

Posted: Thu Apr 19, 2018 2:53 pm
by pravik
Hi Mark,

Still getting similar data, list is not showing complete data.

As you said, looks like we have different versions. I have V14 SP1.

Can you please suggest us an option to rectify the problem in the version which we have.

Re: Automatic row height adjustment based on content

Posted: Thu Apr 19, 2018 3:00 pm
by MarkD
You need to ask LANSA support about any LANSA V14SP1 fix that impacted automatic row height calculations.

Make sure that they know this is not a VLF situation - you are looking for a general LANSA V14SP1 fix that impacted #Prim_LIST row heights.

Re: Automatic row height adjustment based on content

Posted: Thu Apr 19, 2018 3:32 pm
by bark
Hi Priya

What about the point posted by soa?
Have you installed all EPCs? I had similar issues last year but they were fixed by getting current on updates.
So, are you on the latest EPC level? if not, that's the first thing support will ask you to do.
Does it happen across all browsers?

Re: Automatic row height adjustment based on content

Posted: Thu Apr 19, 2018 4:29 pm
by pravik
Hi Bark,

Missed to reply to Soa response.

Recent one which we installed was "VLF_141081_HotFix_005"

We tried it across browsers, results are the same.