Skip to main content

Search Configuration

Search Configuration provides functional setup for the eForm search pages presented to end users. Its primary purpose is to define which fields users can search by and which fields are displayed in the search results. Additionally, this tool can optionally be used to supply a page title and instructions, customize field labels for both search and results fields, and provide language translations for the title, instructions and all field labels.

When configuring a search, you will be able to select fields from three sources: General fields that are shared across all eForms, Form fields that belong to the specific forms included in the search, or Search fields that come from any custom search records applied to those forms for the selected task.

Navigation: Main Menu > Manage GT eForms 3.x > GT Functional Setup > GT System Setup > Search Configuration

Search Page

Search Configuration is defined per family or search set. Each Form Type has its own Search Configuration for the Add task. For each of the other tasks—Evaluate, Update, and View—Form Types that belong to the same Family or Search Set share both the search and its associated task-based Search Configuration (shown as SHARED under Form Type). To search by Form Type, Task or Search Group Type use the Advanced Search option on the search page.

an example screenshot of the search with results

Add Task Search Configuration

For Add Task searches, if a Form Type does not have an Add Search Record configured, the setup page displays the following message:

“No Add Search page will display for this form because no Search Record is set up for the Add Task.”

In this case, users will not see a search page before starting a new form. For details on configuring an Add Task Search Record, refer to the Form Setup documentation on setting up search records.

a screenshot showing no Add search config set up

If a Add Task Search Record is configured, you will be able to configure the search that users see when creating a new form. The page will look something like the following image:

a screenshot showing the Add search configuration

The Add Task Search configuration is the same as the configuration for the Update, Evaluate, and View tasks described in the next section, with the following exceptions:

  • The only available Search Field Source is Srch Rcrd. General and Form fields are not available to the Add Search, as the form has not yet been created when interacting with the Add search.
  • When using the Default button, only the fields from the Add Search record will be loaded into the Search Fields and Result Fields grids.
  • The Copy from buttons are not available for Add Searches.

Update, Evaluate, and View Task Search Configuration

Search Configuration for the Update, Evaluate and View tasks are shared across Form Types in a Family or Search Set. These Shared configuration screens are similar to the Add task configuration but do include several additional options.

a screenshot show the evaluate task search config with label fields

Search Fields

When defaulted, this section displays a combination of fields, starting with the General fields: Form ID, Form Type, and Form Status. Next, it will include Search Record fields marked as search keys in the search record(s), followed by Form fields. You may add, remove, and reorder these fields as needed. However, there is a maximum of 8 Search Fields.

Results Fields

When defaulted, this section also displays a combination of fields, starting with the General fields: Form ID, Form Type, and Form Status. Next, it will include Search Record fields marked as list box items in the search record(s), then Form fields, followed by General fields Original OprID, Original Date, Last OprID, Last Date. You may add, remove, and reorder these fields as needed. However, there is a maximum of 20 Search Result fields.

Field Sources

Form

The available values for a Form field will include all configured fields from all Form Types within the Family or Search Set.

Search Record (Srch Rcrd)

The available values for Search Record fields will include all fields from Search Records configured across the Form Types within the Family or Search Set, but only those configured for the current Task.

General

The available values for General fields are a set of framework defined fields that all eForms share.

Field Labels

When defaulted, the field’s default label (as defined in the field definition) is automatically loaded into this edit box. You may modify this value to display an alternate label on the search page. If the edit box is left blank, the field’s default label will still be used on the search page.

Note: The ability to define field labels on this page was introduced in framework release 3.75.00. If a Search Configuration was created on a previous framework version, it is normal for the label fields to all appear blank. Since blank values fallback to the field’s default label, you may either leave them blank or enter values as desired.

Search Configuration Page Elements

FieldValue/Use
Family/Search SetCurrent Form Family/Search Set
Group TypeEither Family or Search Set
Form TypeCurrent Form Type
Search TaskCurrent Search Task
CustomizedAutomatically checked if default configuration is changed
DefaultRevert configuration to default
ClearFirst click – remove any rows with the show flag unchecked
Second click – clear all configuration
LanguagesOpens modal component to provide alternate Language values for search elements. - Additonal information available in later section.
Copy from VWS/UPD/EVLCopy all configuration from another Shared task in the same family/search set (not availble for Add search setup)
UpMove the selected row up
DownMove the selected row down
Search Field SourceThe type of field – General, Search Record, Form (only Search Record can be use on Add searchs)
Field NameThe field to use and its label
LabelCan be used to modify and/or change the language for what is returned in the Search Fields/Search Results for the Field Name.
If the Label field is empty the Search Field/Search Results will default to the Field Name
If a Label exists it will be returned in the Search Fields/Search Results
If a Multilanguage Label exists the alternate language will be returned in the Search Fields/Search Results.
ShowChecked – will appear on the search page
Unchecked – will be removed from search configuration
Sort Order (Results only)Sort by this column. If selecting multiple, can specify priority (1, 2, 3)
Sort Direction (Results only)Ascending or Descending
PlusAdd a row (Limit: 20)
MinusDelete a row

Search Header Page

Begining with framework release 3.58.05 you have the ability to provide an optional title and instructions that will show to users on a search page.

Navigation: Main Menu > Manage GT eForms 3.x > GT Functional Setup > GT System Setup > Search Configuration -Search Header tab

To configure these items use the Search Header tab found on the Search Configuration compoent.

Search Title

Search Title is an optional value that, when provided, will appear to users as bolded header text at the top of the search page. If left blank, this section will not appear on the search page.

Search Instructions

Search Instructions is an optional rich text field that, when provided, will appear to users in an Instructions collapsible group box at the top of the search page. If left blank, this section will not appear on the search page. Also you may check the Initialize Collapsed checkbox if you want the Instructions group box to display in a collapsed state, requiring users to click to reveal the instructional content.

A screenshot of the Search Title and Instructions Configuration page

Search Title and Instructions -Example Output

The title and instructions will appear above the search fields on the search page. The two configurable elements shown:

  1. Title (red box)
  2. Instructions (blue box)

An example of a Search page with Title and Instructions Displayed on an actual search

Languages Button

The Languages button is available on both pages of the Search Configuration component. When clicked, it opens a modal window where a Language Code needs to be selected. Once the desired Language Code is chosen, the modal displays a set of pages where you can enter values to provide translations for field labels, search title, and search instructions in the selected language.

When a user’s language is set to one that matches entries in this setup, these translation values will be shown instead of the default values. If there is no setup for a given language code, or if any value is left blank, the default value(s) will be displayed instead.

Language Setup - Examples

a screenshot showing the languages button on the search configuration tab

a screenshot showing the languages button on the search header tab

a screenshot show the language set up for field labels

a screenshot show the language setup for header title and instructions

a screenshot show a rendered search with language overrides displaying

Advanced Section

The Advanced Section is found as a collapsed group box at the bottom of the main Search Configuration page and provides the following setup options:

FieldValue/Use
Formlist RecordDefaults to G3FORMLIST, but can be changed to use a custom view defined as a base Form List record. This custom view will control the fields available as “General” search field options. For example, this allows fields like Form Type Descr to be searched and returned in the search configuration without having to add them as hidden fields on forms.
Changing this value is not recommended without advanced knowledge of the requirements of the selected Form List record.

This ability to save search criteria is available in GT eForms 3.58.01+. This allows end users to save their search criteria and reload those saved searches. By default, the button for “Save Search” will appear on all form search pages. To turn off this feature at the framework level, please take the following steps.

Navigate to Manage GT eForms 3.x > GT Functional Setup > GT System Setup > Form Installation Table.

Check for a value in the “System Application Package” field. If there is a value, add the following code to a SearchEvents class in the existing app package. If there is NOT a value, first create a new application package then add it to the System Application Package field and save the page. Then you can add the following code to a SearchEvents class in the new app package.

note

If you do not want to hide the Saved Search button for all forms in the environment, you can add the following code to a family app package or a search set app package instead to control which forms can use saved searches.

Code to hide a Saved Search button
import G3SEARCH:Search;

class SearchEvents
method FormSearchInit(&_Search As G3SEARCH:Search);
end-class;

method FormSearchInit
/+ &_Search as G3SEARCH:Search +/
GetLevel0()(1).G3SEARCH_DRV.G3SVSRC_NAME.Visible = False;
GetLevel0()(1).G3SEARCH_DRV.G3SVSRC_SAVE.Visible = False;
GetLevel0()(1).G3SEARCH_DRV.G3SVSRC_DEL.Visible = False;
GetLevel0()(1).G3SEARCH_DRV.G3SVSRC_LOOKUP.Visible = False;
GetLevel0()(1).G3SEARCH_DRV.G3SVSRC_PB.Visible = False;
end-method;

Search Fields

The search fields available will be returned from the search fields set up in the search configuration in the Family/Search Set of the form type.

  • Choose the search criteria and click Search to return the desired results.

A screenshot of the search window with criteria

  • To save this search, click “Save Search”.
  • Enter a name for your search and click Save.

A screenshot of the Save Search button available

  • Once the search is saved a “Use Saved Search” dropdown will display on the page.
  • When you choose your Saved search from the dropdown the search results will display. These results will update as forms are submitted and/or processed.

A screenshot of the Save Search button naming box

You can add criteria to a saved search to refine results and save to add a new Saved Search

  • Add additional search criteria and click Search
  • The results returned will be modified based on the criteria chosen.

aA screenshot of the Save Search button naming box with additional criteria added

  • To save the modified search click “Save Search”
  • The box to enter the name of the search will display.
  • Enter the name of the new search and click save.

a screenshot showing saving the new search

  • Your new Saved Search will be available in the dropdown

a screenshot showing the new saved search in the dropdown


  • From the search page choose the Saved Search.
  • The Delete Search button will display. Click Delete Search.

A screenshot of the Saved Search option to delete

  • The Saved Search will no longer be available.

Note: You can read about setting up Search Records for tasks in the Search Records By Task document in the Form Setup folder.