GXYiCharDefaultControlsCompatibility

Unofficial Content

Introduction

Since GeneXus 9.0 Upgrade #1, the generation of default Character, Varchar and Longvarchar controls size have changed in order to generate a better default Form.
 

Description

The following table details the differences between the 9.0 Release and lower version and GeneXus 9.0 Upgrade #1 or higher version using the following default values. For more information click here .
 
Environment Parameter Default Value
Windows WinMaximumEditLength 60
Windows WinMaximumSingleLineEditLength 119
Windows WinMaximumMultiLineEditLines 5
Web WebMaximumEditLength 80
Web WebMaximumSingleLineEditLength 159
Web WebMaximumMultiLineEditLines 10
Report ReportMaximumEditLength 255
Report ReportMaximumMultiLineEditLines 1
 
    Up to GX 9.0   GX 9.0 Upgrade #1 or higher   Comments
Environment Attribute Size Control Width # of lines Control Width # of lines Changes in Forms
Character (n) Data Type
Windows
0-59
n 1 n 1 no changes
Windows
60-119
n 1 60 1 control width truncated
Windows
120-n
n 1 60 min(5,ceiling(n/60]] control width truncated
Web
0-79
n 1 n 1 no changes
Web
80-159
n 1 80 1 control width truncated
Web
160-n
n 1 80 min(10,ceiling(n/80)) control width truncated
Report
0-254
n 1 n 1 no changes
Report
255-n
n 1 255 1 control width truncated
Varcharacter (n) Data Type
Windows
0-59
n 1 n 1 no changes
Windows
60-119
n 1 60 1 control width truncated
Windows
120-n
255 1 60 min(5,ceiling(n/60)) control width and height modified
Web
0-79
n 1 n 1 no changes
Web
80-159
80 min(4,ceiling(n/80)) 80 1 control width and height modified
Web
160-n
80 min(4,ceiling(n/80)) 80 min(10,ceiling(n/80)) control width and height modified
Report
0-254
n 1 n 1 no changes
Report
255-n
255 1 255 1 no changes
Longvarcharacter (n) Data Type
Windows
0-39
n 1 n 1 no changes
Windows
40-59
40 1 n 1 control width enlarged
Windows
60-119
40 1 60 1 control width enlarged
Windows
120-n
40 1 60 min(5,ceiling(n/60)) control width and height enlarged
Web
0-39
n 1 n 1 no changes
Web
40-79
40 1 n 1 control width enlarged
Web
80-159
40 1 80 1 control width enlarged
Web
160-n
40 1 80 min(10,ceiling(n/80)) control width and height enlarged
Report
0-39
n 1 n 1 no changes
Report
40-254
40 1 n 1 control width enlarged
Report
255-n
40 1 255 1 control width enlarged


Where:
ceiling: Refers to the Least Integer Function.
 

Considerations

Up to GeneXus 9.0 Upgrade #1 when inserting a Varchar attribute or variable on a Form, the Autoresize property is automatically enabled.
 

Backward Compatibility

Each Character datatype used diferent mechanisms to draw the default maximum control size. With the generalization of this mechanism if you have many long characters with the default control size; you may notice modifications in the Form Layout.

It is not possible to obtain a Default Form equal to Previous versions. This means that there is no Complete backward compatibility values you can choose to generate equal default Forms previous to GeneXus 9.0 Upgrade #1 if you are using default big controls characters.

The following values are suggested ones, the real value you choose will depend on the usage of default long character controls on each Knowledge Base.
 
Parameter Suggested Value Comments
WinMaximumEditLength 255 Balances the default generation of Character and Varchar controls
WinMaximumSingleLineEditLength 9999 Eliminates the possibility of generating multiline edits
WinMaximumMultiLineEditLines 1 Causes the generation of single line edits
WebMaximumEditLength 80 Balances the default generation of Character and Varchar controls
WebMaximumSingleLineEditLength 9999 Eliminates te possibility of generating multiline edits
WebMaximumMultiLineEditLines 4 Balances the default generation of Character and Varchar controls

Note: The Report values
Remember to add the lines to the Preferences section of the model.ini Knowledge Base file; close and restart GeneXus.