Four Js Development Tools Forum

Discussions by product => Genero BDL => Topic started by: Tim B. on March 26, 2009, 05:10:29 pm



Title: Column widths in a TABLE
Post by: Tim B. on March 26, 2009, 05:10:29 pm
The width of a column in a table is determined by its size in the .per, so it might be 100 chars wide, but 100 chars of data may only take up half that amount of room, leaving lots of empty space.  I can't seem to control this except for manually resizing the column headers.  It would be nice if the width of the column in the table didn't restrict the amount of data that could be shown, eg you could have an array of char(100) and a table column of 60 chars wide and the data wouldn't be truncated as it is in my example.

Is this possible already, have I missed something?

GDC 2.11.05


Title: Re: Column widths in a TABLE
Post by: Sebastien F. on March 26, 2009, 05:20:59 pm
Tim,

You should try the SCROLL attribute:

https://4js.com/techdocs/genero/fgl/devel/DocRoot/User/FSFAttributes.html#FA_SCROLL

Seb


Title: Re: Column widths in a TABLE
Post by: Tim B. on March 26, 2009, 05:28:55 pm
Not sure why I didn't try that one.  I think I assumed it just did the same as in BDL, ie allow the input to SCROLL.  In Genero it seems to re-size the field too, which is perfect.

Thanks


Title: Re: Column widths in a TABLE
Post by: Tim B. on March 26, 2009, 05:44:00 pm
One small issue.  This only works with CHAR fields, but the same problem applies to any field, especially dates.  The field must be 'oversized' to accommodate the date, but the date only take up about 60% of the width.

Code
  1. [a         ]  --10 chars
  2.  
  3. a = mytab.datefld;
  4.  
produces something like this:-

|26-03-2009          |


Title: Re: Column widths in a TABLE
Post by: Tim B. on March 26, 2009, 05:48:07 pm
Ignore my last post.  I thought that was happening, but have just tried it again.... :)