Issue #SCB2797 (Resolved) Adding field width to attributes
Hussayn Dabbous <[email protected]> Thu, 19 Feb 2009 17:02:00 +0100 (CET)
| Newsgroups | gmane.comp.java.scarab.issues |
|---|---|
| Message-ID | <[email protected]> |
Activity report on *Enhancement SCB2797 - Adding field width to attributes* Scarab Link: http://www.solitone.org/scarab/issues/id/SCB2797 Module: Scarab Activity generated by Hussayn Dabbous ([email protected]) at 02/19/2009 16:55 *Reasons for the changes* - . *Attribute changes* - Status: Resolved (In progress) - Status: In progress (Unconfirmed) - Solution: Trunk () ------------------------------------------------------------------------------- *Comments* - By Hussayn Dabbous - 02/19/2009 16:56 --- "I have implemented a working solution for enhanced field layout.\\ Now there are 3 additional fields available in the Attribute specifications:\\ __FieldFormat__ The fieldFormat is a regular expression. When a user enters input into a field\\ now the entry is checked for matching the fieldFormat. If the match returns\\ false, an error message is generated. If the formatField is kept empty, Scarab \\ behaves as before and does not check user input.\\ __FieldHint__ Since regular expressions are often extremely unreadable, i have added a second field, \\ where you can specify an "example" pattern. If the fieldHint is set, all error messages\\ and hints will output the content of this field. Furthermore, the FieldHint is currently\\ placed INTO the field as a placeholder for input. So it could(!) be used as default variable.\\ __FieldLength__ Scarab displays fields with FullWidth (the entire screen width) by default. But many \\ input fields can be kept much narrower. Until today, there was a hidden feature in \\ Scarab, which would automatically set the width of a field to "70" if the appropriate \\ change in the style sheets was made. I doubt, that anybody knows about this feature,\\ except the author ... Now Scarab will use the new parameter FieldWidth if it exists, otherwise it will return\\ to the default behaviour and renders fullWidth fields. This change needs a database update.If you want to test it, you need to run the script {{{ $Scarab_root/src/sql/upgrade/upgrade-0.23-attribute.sql }}} For mysql this is easy: {{{ mysql scarab < upgrade-0.23-attribute.sql }}} For other databases you will have to run the equivalent task. this feature is implemented on trunk in rev 10700" - By Hussayn Dabbous - 02/19/2009 16:55 --- "I have implemented a working solution for enhanced field layout.\\ Now there are 3 additional fields available in the Attribute specifications:\\ __FieldFormat__ The fieldFormat is a regular expression. When a user enters input into a field\\ now the entry is checked for matching the fieldFormat. If the match returns\\ false, an error message is generated. If the formatField is kept empty, Scarab \\ behaves as before and does not check user input.\\ __FieldHint__ Since regular expressions are often extremely unreadable, i have added a second field, \\ where you can specify an "example" pattern. If the fieldHint is set, all error messages\\ and hints will output the content of this field. Furthermore, the FieldHint is currently\\ placed INTO the field as a placeholder for input. So it could(!) be used as default variable.\\ __FieldLength__ Scarab displays fields with FullWidth (the entire screen width) by default. But many \\ input fields can be kept much narrower. Until today, there was a hidden feature in \\ Scarab, which would automatically set the width of a field to "70" if the appropriate \\ change in the style sheets was made. I doubt, that anybody knows about this feature,\\ except the author ... Now Scarab will use the new parameter FieldWidth if it exists, otherwise it will return\\ to the default behaviour and renders fullWidth fields. This change needs a database update.If you want to test it, you need to run the script {{{ $Scarab_root/src/sql/upgrade/upgrade-0.23-attribute.sql }}} For mysql this is easy: {{{ mysql scarab < upgrade-0.23-attribute.sql }}} For other databases you will have to run the equivalent task. this feature is implemented on trunk in rev 10700" ------------------------------------------------------ http://scarab.tigris.org/ds/viewMessage.do?dsForumId=458&dsMessageId=1192546 To unsubscribe from this discussion, e-mail: [[email protected]].