Column
| [Previous] [Main] [Next] |
Edit Column Descriptions
Top of the Edit Column Description Screen
Middle of the Column Edit Screen
· | Filled in by users using a Data entry Screen - this option indicates the column gets its data from a edit screen.
|
· | 1. Auto Fill with User Name on Update- LastChangedBy - If you include a char(20) column and mark it with this description, JGuiGen will automatically fill in the user name of the person who last changed the row.
|
· | 2. Auto Fill with Date/Time on Update- LastChangedDate - If you include a timestamp field and mark it with this description JGuiGen will automatically fill it with the date/time the row was last updated. This column will also be used to avoid multi-user conflicts and to help determine the id number of a row just entered if the database being used does not have a function to return the ID created by an auto-incremented column.
|
· | 3. User Checks to mark inactive records- rowInactive - If you include a boolean column or char(1) column and mark it with this description, JGuiGen will ignore row marked inActive during all queries and updates of the table. You can view these rows using the Query Builder.
|
· | 4. Auto Fill with a serial id- Primary KeyField - use this to mark rows that should NOT be inserted in the table, your database will automatically assign values to them. (This is currently for information only. The Checkbox for indicating a column is the Primary Key is the active component when JGuiGen generates an applicaiton.)
|
· | Auto Fill with next # within one ID # - use this to mark an column that should be filled with the next available number within a subset of the table. For example you may be logging documents generated by one user. The next available document number of apply only to the current user. (e.g. if the current user has 10 documents, the next one would be number 11.) This option is not tested at this time.
|
· | Other automatic use by System - This is a generic label used to describe system fields.
|
· | 5. Field not in use at this time - database like postgreSQL do not let you easily remove a column that is no longer in use. Mark these columns with this description and JGuiGen will ignore them when generating the GUI code.
|
|
Report Col Width - This will be used by report writers. Some columns are very wide but usually do not have have much data in them. You can shorten their width in a report using this field.
|
· | Default - this (or a blank) indicates that JGuiGen should use the column "type" to determine which component to use to display/edit the column. For example char columns are edited with a JBoundedTextfield that limits the number a characters a user can place in a column to the width of the column (e.g. a char(30) would be limited to 30 characters.) Boolean column default to a checkbox. Dates default to a pop-up screen.
|
· | Telephone - the "mask" is read from the resource bundle so that it can be changed for different countries. The default for the US is (###) ###-####. This is filled with a default phone number of (000) 000-0000 which the user types over.
|
· | Time (12:30 AM) - This assumes that the time is being stored in a char field. The default format is ##;## AM This format is a stored as a regular expression and is stored in the resource bundle so that it can be modified.
|
· | SSN - the default mask is ###-##-####
|
· | State - The component used to enter the state portion of city/state/zip is a look ahead JCombobox. When a user types the first letter of a State, the combobox finds the first state with that letters and completes the field. The field is forced to upper case. The states are stored in the resource bundle as |AL|AZ|... You can change or add to the states by changing this list.
|
· | IP Number - This is formatted using a regular expression that makes surethat there are four numbers, each between 0 and 255.
|
· | Email Address - This is formatted with a regular expression. It is not checked until the user tries to save the data.
|
· | Money - this formatter is not finished.
|
· | RadioButton - this option is used when the developer wishes to save data in a char field and have the user pick one of a limited number of options. The options are stored in the Codes Bank and read in when the application is generated. The Codes Bank contains fields for the prompt - what the user sees - and the data base code that is stored in the SQL database if the corresponding radio button is pressed. The Gender field in the userlogdata demo is an example of this option.
|
· | CheckBox - when a column stores a simple Y/N or T/F in a char column, this option allows the developer to present the column to the user as a checkbox. The letters to be stored in the SQL database are placed in the Codes Bank. There is an example of a Y/N column called parttime in the userlogdata demo. The Codes Bank contains "Y" if checked and "N" if not checked.
|
· | ComboBox - when there are several options the user can select from a combobox, this option allows the developer to place those options in the Codes Bank. JGuiGen will compile these into the application as an array and fill the combobox on the screen. The "Department" column in userlogdata is an example of this option. Again the Codes Bank contain the prompts that the user sees and the corresponding value to be saved in the SQL table when an option is chosen.
|
· | Editable ComboBox - When this option is chosen, the data saved in the SQL database must be the same as the prompt the user sees.
|
· | Integer with Positive and Negative Values - when the column type for a column is integer you will be asked to indicate if negative values are allowed. All characters except 0-9 and "-" are rejected. The "-" can be changed for different international locales.
|
· | Integer with Positive Only - If you choose this option a negative sign will be rejected when the user tries to enter it.
|
· | All Capitals - this option forces a field to uppercase by placing all of the lowercase letters to be excluded into the resource bundle file. This allows you to have a field which contains spaces and punctuation, but no lowercase letters.
|
· | All Lowercase - this option is the reverse of the previous one.
|
· | Two Decidmal number - when the user should enter a number and have two decimals saved, this is the mask to use.
|
· | Three Decimal number - when the user should enter a number and have three decimals saved, this is the mask to use.
|
· | Other Decimal number - not finished
|
· | JSpinner - work in progress
|
· | Generic Format Mask - a JFormatted Text field with a Format Mask that you provide.
|
· | Generic RegEx - A JformattedTextField with a Regular Expression that you provide.
|
· | URL with Browse Button - This option generates a text field with a button beside it marked "View". Clicking on the button lauches a web browser and views the URL in the text field.
|
· | Doc Path with Word Proc Button - This is similar to the URL with a Browse button. It causes a word processor to open the document in the text field.
|
· | JList - Multiple Select Combobox - This option assumes that several different columns in the SQL table are to be selected via one multiple select combobox. You mark one of the Columns with this option (leave the other blank) and mark all of them as "Part of a JList" in the Editable column above.
|
· | Date only (from DateTime) - some databases (like MS Access and SQL Server) store all date and time fields in a timestamp column. Use this option to tell JGuiGen that you only want the Date portion of the field to be displayed or edited.
|
· | Time only (from DateTime) - this is the same as the previous mask, except it only displays or edits the Time portion.
|
10. | Encrypt - when this is finished you will be able to indicate columns that should be saved in you database in encrypted form.
|
· | OverRide- If a validation is chosen and the Over Ride checkbox is checked, the user will be notified that the value they have entered is outside of the "suggested" range. They will be allowed to override this suggestion and save their data with the "bad" value. If the Over Ride checkbox is not checked then the validation will concider the bad data an error and will not allow it to be saved into the table in your database. You can use this to help catch errors. For example, most people the date they are hired into a company would be close to the current date. A date two years ago is almost certainly an typographical error. However, in rare situations you might need to enter a date two years ago to correct problems in your table or to re-enter accidentally deleted data. In this case you would want the user to be able to override the limits.
|
· | Minimum Value - This is used if the "Min - Max Range" option is chosen under validations.
|
· | Maximum Value - This is used if the "Min - Max Range" option is chosen under validations.
|
Elements at the bottom of the Column Edit Screen