Changing a data grid layout

In TMW Operations there are two types of grids:

Data entry grids

On some data entry windows, users make entries in fields that are arranged in columns. Each line of data in the grid represents a detail that belongs to the record the user is viewing or updating.

For example, the All Stops tab on the Order Maintenance window consists of a grid that is used to record stop details.

image1

Record retrieval grids

Other grids are used only for record retrieval. You cannot use them to enter data.

For example, the Scroll Orders window consists of a grid that lists orders.

image6

By default, all users have access to all columns in all grids. Grid-level security allows you to limit the columns a user or user group can view and/or update. For either grid type, you can hide columns. For data entry grids, you can make columns read-only.

Column security is saved within grid layouts, which are assigned to users or user groups. When users log on, they will have access only to the columns you have selected for them.

Adding and hiding columns

If you are a system administrator, you can permanently add or hide a data grid column from users or user groups. You must do the following:

To display or hide columns, you must have access to the Field Chooser, located in the upper-left corner of the data grid.

image8

Adding or hiding a column using the Field Chooser

Use this procedure to choose which fields display as columns in the grid and which are hidden.

  1. Click the image9 Field Chooser icon.
    The Field Chooser window is shown.

    image10

    Note: All available fields are listed in alphabetical order with the default column name, followed by the database field name.

  2. If the grid contains nested data rows, do one of the following.

    The available fields are listed as members of a group of fields.

    image11

    Example of nested data rows.

    image12

    Field Chooser groups represented in the grid.

    • To limit the list of fields, select the group from the drop-down member list.

    • To hide the entire nested row, clear the checkbox next to its name.

      image13

  3. Do one of the following:

    • Click-and-drag method

      1. To display the field, click and drag a field from the Field Chooser window:

        image14

        to a location in the grid:

        image15

        The red arrows indicate where the column will be located.

      2. To hide a field, click and drag the column heading from the grid to anywhere outside the grid.

    • checkbox method

      1. Select the checkboxes next to the fields to display as columns in the grid.

      2. Clear the checkboxes next to the fields to hide from display.

  4. When finished, close the Field Chooser window.

Hiding a column using Column Security

To hide a column by assigning it a security level of No Access, follow these steps:

  1. In a data grid, right-click on a column name.
    A shortcut menu displays.

    image16

  2. Select Column Security.

  3. Select the checkbox to the left of the No Access sub option.

    image17

    The column is removed from the data grid.

  4. Save the grid layout.

  5. Assign the layout to the appropriate user(s) or user group(s).

Re-displaying a hidden column

Use this procedure to re-activate a previously hidden column in a data entry or a data retrieval grid.

  1. Click the image9 Field Chooser icon.
    The Field Chooser window is shown, with all available fields listed in alphabetical order.

    image18

  2. Do one of the following:

    • Click-and-drag method

      1. To display the field, click and drag a field from the Field Chooser window as shown here:

        image19

        to a location in the grid:

        image20

        The red arrows indicate where the column will be located.

      2. Close the Field Chooser window.

    • checkbox method

      1. Select the checkboxes next to the fields to display as columns in the grid.

      2. Close the Field Chooser window.

  3. If you want to enable the user or user group to enter data, do the following:

    Note: If the column is part of a data entry grid, the system automatically sets the column to read-only status.

    1. Right-click on the column heading.
      A shortcut menu displays.

    2. Select Column Security.

    3. Select the checkbox to the left of the Full Access sub option.

  4. Save the grid layout.

  5. Assign the layout to the appropriate user(s) or user group(s).

Changing column header text

Your company has its own language. You might use certain terms to identify information stored in the database.

Use this procedure to change column header text (also referred to as a label). This action changes the column header text for only the current data grid.

  1. Right-click the column heading.

  2. In the shortcut menu, see the current column’s label.

  3. In the text box, change the label.

    This example shows Driver1ID.

    image21

  4. Click in a different location on the window.
    The menu disappears and the label is changed.

  5. After making all the changes, save the new grid layout and assign it to users or user groups.

Assigning read-only status to a column in a data entry grid

On a data entry grid, there may be times when users need to see a column, but you do not want them to enter or change information in that column.

Assigning read-only status to a column

Use this procedure to assign a read-only status to a column permanently.

  1. In the data grid, right-click on the column name.
    A shortcut menu is shown.

    image16

  1. Select Column Security.

  2. Select the checkbox to the left of the Read-only Access sub option.

    image23

    The column now has a grayed out appearance and you will not be able to enter data in it.

Changing the column’s status to full access

At some point you may need to change the column’s status to full access so that users or user groups can enter data in it. Use this procedure to do so.

  1. Right-click on the column heading.
    A shortcut menu is shown.

    image16

  1. Select Column Security.

  2. Select the checkbox to the left of the Full Access sub option.

    image24

  3. Save the grid layout.

  4. Assign the layout to the appropriate user(s) or user group(s).

Saving, loading, resetting, and deleting a grid layout

Changes made to a grid are temporary. Once you close the window and reopen it, the grid will be back in its original layout. You can create a new layout or redesign an existing layout. However, if you want to retain your changes, you must save the layout.

The procedures for saving a new layout and for saving an existing user-defined layout are the same for all users. See:

If necessary, you can prevent users from accessing these features.

Resetting a grid layout to the factory default

Use this procedure to quickly return from your current layout to the factory [Default] layout.

  1. Right-click anywhere in the body of the window or grid.
    A shortcut menu is shown.

  2. Select Reset Layout or press ALT+F2.

    image25

  3. At the prompt, click Yes.

    image26

    Note: If you decide not to reset the layout after all, click No instead.

The data grid layout then returns to the factory default layout.

Deleting a grid layout

Use this procedure to delete a layout that you no longer want. You can delete grid layouts that you created and saved for your own use. If you need to delete grid layouts that other users saved for their own use, see Deleting a window or grid layout.

  1. Right-click in the grid and select Load Layout.
    Available data grid layouts will be listed.

    image27

  2. Select the name of the layout to delete.
    The menu expands to show additional options.

    image28

  3. Select Delete Layout.
    A confirmation message is shown.

    image29

  4. To delete the layout, click OK.
    If you decide not to delete the layout after all, click Cancel instead.

Loading a saved grid layout from a file

Use this procedure if you want to load a grid layout that you or someone else saved as a file for your use.

  1. Right-click in the grid and select Load Grid Layout from File.
    The Import Layout window opens.

  2. Go to the file location.

  3. Select the .SDL file.

  4. Click Open.
    The imported grid layout is applied.

  5. Save the new grid layout.

Preventing users from modifying data grids

Several settings exist that allow you to prevent users from making changes to data grids.

Preventing users from adding or removing data grid columns

By default, all users have access to the Field Chooser. It lets them add or remove columns so the grid shows what is most useful to them.

image8

Your company may prefer to control which columns users see by making Field Chooser unavailable in data grids. Field Chooser is hidden when you have [FuelDispatch]DoColumnChooserDisableIfNotAdmin=Y in your TTS50. This prevents users from adding or removing columns.

By default, all users have access to the Reset Layout menu option. This allows them to reset the grid layout to the factory default.

image25

However, default grids do not have any security applied to them. Consequently, users who reset to this layout can make entries in fields that your company wants to keep hidden or read-only.

To disable the Reset Layout menu option, set [Misc]ShowResetLayoutForNonSA=N in your TTS50.

Preventing users from saving or loading data grid layouts

By default, all users have the ability to:

If you have specially designed layouts that you do not want changed or replaced, you can disable the user’s ability to save or load layouts. To do so, you must have [Misc]ShowGridLayoutOptionsForNonSA=N in your TTS50.

The [Misc]ShowResetLayoutForNonSA setting value overrides this setting for the Reset Layout menu option. However, to avoid potential performance issues, Trimble recommends that you set both settings to Y or N.