Create Hot Spots (Using The Query Wizard)

System Location: Settings > System > User Maintenance

This example shows how to create a Hot Spot using the Query Wizard.

  • It is beyond the scope of this example to provide details related to "manual" SQL Statement creation, editing, and syntax. For assistance in creating basic statements using the Query Wizard, see 'Create A New Hot Spot From Scratch' below. For information regarding the creation of specific SQL Statements, contact Support to determine potential costs.

For purposes of this topic, it is assumed the actions detailed are performed within the User Maintenance area of JobBOSS2, however it is possible for a User with security rights to User Maintenance to create Hot Spots by clicking the Hot Spot button in the Quick Access Toolbar as well.

Select The User

  1. In the Navigation Sidebar, click the Settings button.Settings Button
  2. Open the System dropdown menu.
  3. Select 'User Maintenance.'
  4. In the User Maintenance Navigator, select the User to whom the new Hot Spot will be assigned.
  5. Click 'Edit.'
  6. Click 'Hot Spots' (located in the User Maintenance Header.)Hot Spots Button - User Maintenance
  7. Click 'Edit Hot Spots.'
  8. Click 'New Hot Spot.'
    • The Query Wizard opens to the Field Selection screen.
Select Tables And Fields

This example will create a Hot Spot (SQL statement) that will display all the Purchase Orders associated with a selected Part Number; however the logic remains the same regardless the Tables and Fields selected.

  1. Click 'New Hot Spot.'
    • The Query Wizard opens to the 'Field Selection' screen.
  1. Open the 'Available Tables' dropdown menu.
    • This menu displays the various tables that are associated with the selected system area / record that can be used by the Wizard.
  2. Select the table to include in the SQL statement.

    • The Wizard now displays a list of 'Available Fields' associated with the selected table.
      • In this example, 'PO' is the selected table.
  3. Select one or more fields to include.
    • This represents the specific fields the that will be included in the SQL statement created.
      • In this example, the following fields will be selected:
        • Purchase Order Number
        • Purchase Order Total
        • Vendor Code
        • Vendor Description
  4. Click 'Select' to add the field(s) to the Selected Fields grid.
    • Clicking 'Select All' would place all the Available Fields in the Selected Fields grid at one time.
  5. (OPTIONAL) Select another table and additional fields.
    • Once fields have been selected from the first table chosen, a second table can be selected from the grid to add to the SQL statement.
      • In this example, 'PODet' will be selected from the Related Tables box (or selected in the Available Table dropdown menu) and 'Part Number' added to the Selected Fields grid.
    • A maximum of 2 (two) tables can be selected for use in the Wizard.

    Query Wizard

  6. Click 'Next.'
    • If 2 tables were selected, the Wizard next displays the 'Join Tables' screen.
Join Tables (CONDITIONAL)
  1. (CONDITIONAL) Select the fields to use to 'Join Tables.'
    • By default the Wizard selects a field from each table as the "join" criteria, but these can be edited.
      • In this example, 'Purchase Order Number' is the common field used and will remain that way.
      • The tables MUST be joined by a field that is present in both of them in order for the query to successfully return information.
  2. (CONDITIONAL) Click 'Next.'
    • The 'Search Criteria' screen displays.
    • If only 1 (one) table was selected on the 'Field Selection' screen, the Wizard would skip the 'Join Tables' screen and go directly to 'Search Criteria.'
Select Search Criteria
  1. Open the 'Field' dropdown menu and select the first value to use.
    • Only the 'Selected Fields' are displayed.
      • In this example, 'POdet.Part Number' will be selected.
  2. Open the 'Criteria' dropdown menu and select the criteria to apply to the selected field.
    • Though they may vary based on the field selected, options will include items such as 'Equal To', 'Greater Than', 'Less Than', etc.
      • This example will use 'Equal To.'
  3. Select the desired 'Value' option.
    • Select 'Search for specific value' if the Hot Spot should always use a specified value, eliminating the need for user input.
    • Select 'Prompt the user for a search value' if the user should be required to provide information for the Hot Spot.
      • This example will use the 'Prompt' option to allow the user the ability to specify what part to see information for.
  4. The action required for this step depends on what option was selected for the 'Value' radio button (Step 12.)
    • 'Search For Value'' - Select the appropriate value from the dropdown menu.
      • The values will vary based on the Field selected.
        • When entering values manually, make sure they match EXACTLY to ensure the query returns the desired results.
        • Due to syntax issues, double quotes (") should NEVER be used in fields that may be used in queries.
    • 'Prompt User' - Enter the message that should appear in the prompt provided and click 'OK.'
      • The Wizard will provide a message by default, such as 'Enter Part Number' (since that is the Field that was selected.)
      • This option would not be practical for use on Triggers.
        • This example will use the default message.
  5. Click 'Add Criteria.'
    • This must be done to add the criteria to the query.
  6. (OPTIONAL) Add more criteria to the query by repeating steps 10 - 14.
    • This can be done to either expand the list of values to look for or to narrow the possible instances of getting a result.
    •  When additional criteria are added, the 'Apply Criteria As' radio button becomes required.
      • Selecting 'And' causes the resulting SQL statement to return results only if both / all criteria are met.
      • Selecting 'Or' causes the resulting SQL statement to return results so long as either / any of the criteria are met.
      • For example, if 'PO.Vendor Code' was selected as an additional (Equal To) Criteria :
        • Selecting 'And' would result in a query that returned results only if BOTH Part Number AND Vendor Code matched the provided values. (Results narrowed.)
        • Selecting 'Or' would result in a query that returned results so long as EITHER Part Number OR Vendor Code matched the provided values. (Results expanded.)
    • This example will only use 'PODet.PartNumber' as the Criteria.
  7. Click 'Next.'
Select Sort Option For Results
  1. Open the 'Sort By' dropdown menu and select how the Trigger will sort the information displayed if an action occurs that meets the stated criteria.
    • This example will use 'PO.PurchaseOrderNumber.'
  1. Enter a value for *'Query Code' in order to identify the Hot Spot.
  2. Enter a 'Query Description' to help clarify exactly what the Hot Spot will display.
  3. Determine whether the Hot Spot will be added to all Users by default.
    • Selecting the 'Copy Query To All Users' option automatically adds the Hot Spot to ALL Users, including the default Touch Screen User.
    • Leaving this option blank means the Hot Spot will only be available for the User that was listed on the Hot Spot Screen when the Query Wizard was launched.
    • Hot Spots can be added to / removed from Users in the future as needed.

    Search Settings

  4. Click 'Finish.'
    • The result of the selections made displays in the 'SQL Statement' field on the Hot Spot Maintenance Screen.
  5. Click 'Test' to check the validity of the SQL statement.
  6. When finished, click 'OK' to save the changes and exit Hot Spot Maintenance.
    • The Hot Spots are assigned to the User at this point.
  7. Click 'Close' to exit the 'Hot Spots' screen.
  8.  Click 'Save' to close User Maintenance.
    • The newly assigned Hot Spot will be available for the User to run the next time they log in to JobBOSS2.