Automatic row height adjustment based on content

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
pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Automatic row height adjustment based on content

Post by pravik » Fri Apr 13, 2018 9:47 pm

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

pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Automatic row height adjustment based on content

Post by pravik » Tue Apr 17, 2018 4:19 pm

Hi All,

can someone help on this!!!

Regards,
Priya

MarkD
Posts: 630
Joined: Wed Dec 02, 2015 9:56 am

Re: Automatic row height adjustment based on content

Post by MarkD » Tue Apr 17, 2018 5:29 pm

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 

pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Automatic row height adjustment based on content

Post by pravik » Tue Apr 17, 2018 9:14 pm

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

MarkD
Posts: 630
Joined: Wed Dec 02, 2015 9:56 am

Re: Automatic row height adjustment based on content

Post by MarkD » Wed Apr 18, 2018 8:03 am

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 3516 times
What do you see when using the same code?

MarkD
Posts: 630
Joined: Wed Dec 02, 2015 9:56 am

Re: Automatic row height adjustment based on content

Post by MarkD » Wed Apr 18, 2018 8:07 am

I don't think parent(#Com_Owner) is correct for the list or the test button.
See if parent(#CustomPanelBody) works.

pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Automatic row height adjustment based on content

Post by pravik » Wed Apr 18, 2018 2:11 pm

Hi Mark,

I tried using parent(#CustomPanelBody) as well still same. Have attached the screenshots.
Attachments
List_Right_slider_screenshot.docx
(56.96 KiB) Downloaded 107 times

MarkD
Posts: 630
Joined: Wed Dec 02, 2015 9:56 am

Re: Automatic row height adjustment based on content

Post by MarkD » Wed Apr 18, 2018 2:52 pm

What happens when you run the code sample as a standalone form?
Do you see the same as I do?

pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Automatic row height adjustment based on content

Post by pravik » Wed Apr 18, 2018 4:02 pm

Hi mark,

Even in standalone I'm getting similar screen. screen shot of the same has been attached.
Attachments
Standalone.PNG
Standalone.PNG (13.18 KiB) Viewed 3494 times

soa
Posts: 312
Joined: Mon Dec 07, 2015 3:15 pm

Re: Automatic row height adjustment based on content

Post by soa » Thu Apr 19, 2018 8:46 am

Have you installed all EPCs? I had similar issues last year but they were fixed by getting current on updates.

MarkD
Posts: 630
Joined: Wed Dec 02, 2015 9:56 am

Re: Automatic row height adjustment based on content

Post by MarkD » Thu Apr 19, 2018 9:29 am

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 114 times

pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Automatic row height adjustment based on content

Post by pravik » Thu Apr 19, 2018 2:53 pm

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.

MarkD
Posts: 630
Joined: Wed Dec 02, 2015 9:56 am

Re: Automatic row height adjustment based on content

Post by MarkD » Thu Apr 19, 2018 3:00 pm

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.

bark
Posts: 26
Joined: Thu Jan 05, 2017 9:56 am

Re: Automatic row height adjustment based on content

Post by bark » Thu Apr 19, 2018 3:32 pm

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?

pravik
Posts: 60
Joined: Tue Dec 26, 2017 6:44 pm

Re: Automatic row height adjustment based on content

Post by pravik » Thu Apr 19, 2018 4:29 pm

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.

Post Reply