Table row height

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
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Table row height

Post by stevec »

Working on a application for fuel deliveries. Need things BIGGER for drivers to more easily select things like a table row. Not having any luck with rowheight on set_table. Tried number (pixel I assume) an percent, no affect.
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Table row height

Post by tsupartono »

You can set the CellPadding property of the table to increase the spacing between the cells (increasing the TOP and BOTTOM padding would be sufficient as you want bigger height).

For example, if your table is called MyTable, using direct property access method:

Code: Select all

#COM_OWNER.Using Element('/Form.Fields')
#COM_OWNER.Using Element(MyTable)
#COM_OWNER.Set Property(CellPadding.Top) To('10')
#COM_OWNER.Set Property(CellPadding.Bottom) To('10')
. . .
You can also increase the font size of the texts in the rows:

Code: Select all

#COM_OWNER.Using Element('/Form.Fields')
#COM_OWNER.Using Element(MyTable)
#COM_OWNER.Set Property(Col%1.Header.Text) To('Address')
#COM_OWNER.Set Property(Col%1.Name) To('Address')
#COM_OWNER.Set Property(Col%1.Content.Font.Size) To('25')
. . .
For more information on direct property access method:

http://www.longrangemobile.com/docs/lan ... erties.htm
stevec
Posts: 138
Joined: Thu Aug 23, 2012 6:45 am

Re: Table row height

Post by stevec »

Thanks. The celpadding on set_table also worked.

What is rowheight for then on set_table?
tsupartono
Posts: 289
Joined: Wed Apr 18, 2012 10:21 am

Re: Table row height

Post by tsupartono »

The 'RowHeight' property does actually work, however there are two things to note here:
  • I can confirm that setting RowHeight property using the RDML wrapper Set_Table command does NOT work.
    However, the direct property access method works. Example:

    Code: Select all

    #COM_OWNER.Set Property(Table1.RowHeight) To('70')
    
  • We would generally discourage the use of absolute width/height values as you would almost always have to adjust them when you change other attributes, such as font size. Also - if some of the text in the table row wraps, it will most likely get truncated if you have a fixed row height. Using CellPadding avoids these situations.
Post Reply