Single column table and wrap - RDMLX

Please do not use to report errors- use your regional help desk.
Please mark posts as being for RPG or RDMLX (LANSA) developer.
To subscribe by email, display this forum, scroll to the end and select ‘Subscribe Forum’.
Post Reply
kno_dk
Posts: 45
Joined: Wed Oct 17, 2012 4:19 am

Single column table and wrap - RDMLX

Post by kno_dk »

Hi
I have a single column table. In this column i want to put in a text string with a lenght more than what can be shown on the device. I have therefor set the wrap to true. But it is not wrapping the text.
Here is the code:
Æcom_owner.Set_Table Name(Results2) Layout_Cols(-1) Border_Thickness(1) Border_Cornerradius(11) Border_Color(Black) Layout_Row(3) Layout_Col(1)
ÆCOM_OWNER.Set_Table Name(Results2) Col_N(1) Col_Name(COL1) Col_Width(Fit)

ÆCOM_OWNER.Set_Label Name('Results2.Row%' + ÆuEntry.AsString + '.COL1') Text(ÆK4BEM) Wrap(TRUE)

is it not possible to wrap in a table?

/klaus
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Single column table and wrap - RDMLX

Post by tsupartono »

It's definitely possible to wrap inside a table.

There can be a few reasons why your label is not wrapping, but let's start with the most obvious problem.

I noticed that you set the table column to FIT. This means that the column will take as much space as required to fit the whole text as one line (text will only wrap if it cannot fit in the provided space).
So try to change your column's width to FILL instead. This will stop the column from automatically expanding to the text width.
kno_dk
Posts: 45
Joined: Wed Oct 17, 2012 4:19 am

Re: Single column table and wrap - RDMLX

Post by kno_dk »

Thanks.

now it works
Post Reply