Four Js Development Tools Forum

General => Ask Reuben => Topic started by: Reuben B. on February 21, 2022, 02:20:58 am



Title: Ask Reuben 114 - STRETCHMIN, STRETCHMAX
Post by: Reuben B. on February 21, 2022, 02:20:58 am
If I was responsible for an organisations code base and coding standards, with the release of Genero Enterprise 4.00 and the various responsive features, one of the coding standards I would add is that table columns that a) contain character data and b) have a width greater than 15, I would say that these columns should have STRETCH=X.
 
Most codes and numeric values are consistent in their width and less than 15 characters, whilst most name, description, address type data are textual, vary in length and are often designed with a maximum length that is rarely encountered.  By adding STRETCH=X to these columns, they will stretch and shrink in width in response to the width of the table.
 
However you may not want these columns to stretch too far or shrink too small, the new attributes STRETCHMIN and STRETCHMAX allow you to constrain just how much a column can stretch.
 
To learn more, read https://4js.com/ask-reuben/ig-114/