View How to Establish Global Grid Default Settings
How to Establish Global Grid Default Settings
One of the greatest resources of the Hudson Suite is the ability to create custom grids within the HWeb Dispatcher Application. It can be time consuming to tweak and adjust a grid to the point that you desire. If you then want to replicate the format (look and feel) of these grids, or apply the same formatting to other pre-existing grids, you often have to repeat the process again. By setting and saving Global Default Settings for grids, this process is streamlined. This allows you to create additional grids quickly, concentrating primarily on the arrangement of your data.
Requires HWeb Dispatcher 1.89e or later.
A sample GlobalDefaults.gdf grid definition file is attached to this article for download. It may aid in understanding the setup steps outlined below.
Setting Default ParametersGrid Layout
- Login to HWeb Dispatcher
- Select File - New - Reservations View
- Right click any one of the column headers and select Grid Layout.
- Press CTRL + A keys to highlight all field name rows EXCEPT for ID.
- Select Hide Selection from the Menu buttons on the right.
- Right click the ID column header and set a Filter: EQUAL to 0 (zero).
- Click Apply and OK (the grid should not display any data rows)
- Right click on any one of the column headers and select Grid Properties
- Locate and select the Colors & Font tab.
- On this tab, set all of the items that you wish to configure as a system default. There are many parameters that may be controlled here such as Font, font color and size, grid line presence and or width, etc.
- Note that there is a column labeled: Global Override. If you do not want an item to be configured as a default setting, un-check this box. Unchecked items will not be set and saved as a default item.
- Click OK when finished.
- Save the new grid in the HWeb / Templates folder on the server, and give it the name: GlobalDefaults.gdf (this name is mandatory).
Setting Additional Source Key DefaultsTo aid in grid building consistency, you may wish to have any/all grids display the same Font and Background color for a particular Service Type, Airport, Direction, Operation or Status. The easiest way to achieve exact or identical matches from grid to grid, is to create a kind of reference tool that will allow you to know precisely which colors you have decided to use. You can create this reference tool and save it inside the GlobalDefaults.gdf grid definition file so that you are not forced to recall this information, much later, when building or replacing grids on a desktop. This is accomplished through the use of Source Keys. To set a Source Key or group of Source Keys:
- Open the GlobalDefaults.gdf grid.
- Right click on the column header and select Grid Properties.
- Locate and select the Status Colors Tab.
- Double Click the first field under Source Key column header; enter a name in this field that will aid in quickly identifying the status item to be configured; e.g.: Landed, InAir, Scheduled, etc (for FlightInfo field).
- Double Click the first field under FC column header. This will open a color palette selection tool. Browse to and select the desired FONT COLOR to be defined.
- Double Click the first field under BC column header. This will again open a color palette selection tool. Browse to and select the desired BACKGROUND COLOR to be defind.
- If you wish for the text to be BOLD place a check mark in the appropriate box.
- If you wish for the text to be italicized place a check mark in the appropriate box.
- If you have opted to leave several FieldNames displayed in your original Grid Layout, and these items have the "status" box checked, you will also see columns for these Fields. You may set default status values here if desired, or you may configure them individually as you build the custom grids at a later time.
- In the Description field, you can enter what item you want to use this color scheme for in the future. Examples> Service1, SharedRide, TownCar, AirportArrivals, Canceled Reservations, etc.
- Click OK to close
- Save the GlobalDefault Grid once again.
Using the Global Default GridNow that you have configured and saved your default settings, these defaults should be applied with you open a new grid. To test this functionality:
- Click File > New > Reservations view
- The default colors, fonts, grid lines, etc should be displayed.
- You can open Grid Layout and add/remove fields as desired. If you wish to color code that field in the final grid, then you should also place a check mark in the status column box.
- Click OK to close out of Grid Layout.
- Open Grid Properties and locate the Status Colors Tab.
- Double Click the Source field and you will be able to select from one of the previously saved SourceKey options. Depending on what item you wish to color code (example: Service1), you will select the appropriate item from the list defined in the GlobalDefaults grid. Once selected, the previously defined Font and Background color schemes will be applied to reservations that meet that filtering criteria.