Skip to content

Workflow Plus - Browse and Reference Field

Browse and reference fields extend request fields with additional lookup and display capabilities.

RequirementDescription
Workflow administrator accessRequired to create and configure browsers and reference fields.
Request type configuration accessRequired to add and configure fields in a request type.
Database query accessMay be required when creating or modifying SQL queries for browsers and reference fields.

Go to Workflow > Requests > Request types and select the request type you want to configure, for example Checked task.

In the Fields section, click Add to add a new field, and click Add (Section) if you want to add a new section. Add New button

To add the browser field, select a field type according to your needs, for example Free: GUID. Choose Field Type

After selecting the field type, scroll down to the Browser section and click the new button to create a new browser for this field. Click New

Alternatively, you can link an existing browser to the current view by selecting it from the list of available browsers, for example ExactSynergyProjects then click the Save button. Link Browser

After creating the request field, test it by creating a new request of the corresponding type, such as a Checked task, and confirming that the browser field appears in the form. Section is displayed When you open the browser field, you are redirected to the browser view that you created or selected. List Projects And the selected project is displayed in the request form. Selected Project Displayed

When you create a new browser, fill in the following fields:

FieldDescription
NameThe technical name of the browser. It is used in the source code and repository to define which browser to use.
CaptionThe text displayed as the browser title.
TermIDThe term ID associated with the caption.
QueryThe SQL query used by the browser. You can use parameters; if you do, you must also fill the Query parameters field.
Column infoDefines the columns displayed in the browser and their display properties. This can be filled automatically by choosing Save + Edit column info.
Result columnsThe columns returned to the calling code (key and description). The columns are separated by commas, for example: c.cmp_wwn,c.cmp_name.
Query parametersThe list of columns that require a parameter in the query, for example: h.res_id.
Table listThe list of tables used in the query, including aliases if applicable, separated by commas, for example: cicmpy c,humres h.
Security levelThe minimum security level a user must have to use this browser.
Maintenance ApplicationThe maintenance application that starts when the user presses the New button in the browser.
Enterprisesearch entityThe entity used for Enterprise Search, if applicable.
Security providerThe security provider definition for the browser.
Security provider parametersThe parameters used by the security provider.

After you have entered the Query, Column info, and other main fields, click Save + Edit column info to open the column configuration screen.

In the left list box, you can change the order of the columns. On the right side, you configure the properties for the selected column. Make sure you select the column from the column drop‑down first.

For each column, you can configure the following properties:

FieldDescription
Header / TermIDThe column caption and its term ID.
Header – Suffix / TermIDThe suffix caption and suffix term ID.
VisibleSets the column to be visible or hidden.
SortingEnables sorting on this column.
Quick search columnEnables the column for searching in the browser’s quick search.
CheckmarkConverts a 0/1 value from the database into a checkmark in the browser.
DomainThe repository domain used by the column. The domain determines how the column is displayed and the maximum length for the related input field.
Scale / Currency columnDefines which currency to display for an amount when the currency is stored in another column.
Selection valuesPredefined selection values for this column (used in the quick search).
Selection columnsDefines the column that contains the selection values (for example, for status codes).
TermID columnThe term ID for the value in the result. Useful for status fields like A (Active), P (Proposed), where the database value is A but the browser displays “Active”.
Suffix / TermID columnThe suffix and suffix term ID for the value in the result.
Right alignedRight‑aligns string fields.
Human IDDisplays the value as a Human ID. For example, database value 15367 is displayed as 15.367.
Date/Time formatThe display format for date/time fields.
Search optionConfigures the search operator used in quick search (for example “Contains” or “Starts with”).

After the query and browser definition are created:

  • You can select the browser in a free field whose key type matches the browser key type.
  • Example: if the browser is built on table cicmpy with key cmp_wwn of type guid (uniqueidentifier), the browser is only available in request Free GUID fields.

This browser shows all accounts where the person in the request is the account manager.

  • Name: AccountManagers

  • Caption: Accounts

  • TermID: 9 (for “Accounts”, found via: System > Setup > Terms > Search).

  • Query:

    SELECT c.cmp_wwn,
    c.cmp_name,
    h.res_id,
    h.fullname
    FROM cicmpy c
    INNER JOIN humres h ON c.cmp_acc_man = h.res_id
    WHERE h.res_id = ?
    ORDER BY c.cmp_name

    The ? parameter is the person (resource) taken from the request.

  • Column info (initial): c.cmp_wwn;c.cmp_name;h.res_id;h.fullname After you click Save + Edit column info, you can refine it to:
    c.cmp_wwn,,,,,,2;c.cmp_name,,Name;h.res_id,,Resource Id;h.fullname,,Full name.

  • Result columns: c.cmp_wwn,c.cmp_name (key and description used in the browser).

  • Query parameters: h.res_id.

  • Table list: cicmpy c,humres h. Workflow Browser

In the Save + Edit column info screen:

  • For column c.cmp_wwn

    • Visible: No (the GUID does not need to be shown).
  • For column c.cmp_name

    • Header: Name
    • TermID: 206 (term for “Name”).

    Column Info Editor

  • In the Browser section, select the AccountManagers browser in a suitable free GUID field. Reference URL to Account Card

  • Because the browser has a parameter, an additional field Dependency: h.res_id appears with a drop‑down of available request fields. Select the Person field as the source for the parameter.

  • Leave Result columns empty in the free field, because they are already defined in the browser.

  • Reference URL: CRMAccountCard.aspx?BCAction=1&ID= This link is shown after the browser. It opens the Account Card, and ID is filled automatically based on the selected account.

  • Reference SQL: Leave this empty initially so it is generated automatically. If you get a query error with a standard browser, you can define your own query, for example:

    SELECT c.cmp_name
    FROM cicmpy c
    WHERE c.cmp_wwn = @P1

    @P1 is automatically replaced by the selected account ID.

  • Show inputfield: Automatically unchecked because the browser key is a GUID users select the value via the browser only. In the request, when the Person field changes, the browser results update accordingly. Filtered Accounts Result

This browser shows purchase orders directly from the Exact Globe/Macola back‑office database. Purchase Order Workflow

  • Name:PurchaseOrderPO

  • Caption:Purchase order list

  • TermID:490 (for “Purchase order list”, found via System > Setup > Terms > Search).

  • Query:

    SELECT po.ord_no,
    po.vend_no,
    v.vend_name
    FROM poordhdr_sql po
    INNER JOIN apvenfil_sql v ON v.vend_no = po.vend_no
    ORDER BY ord_no

    This query reads purchase orders from the Macola purchase order table and joins the vendor table to show the vendor name.

  • Column info (initial): po.ord_no;po.vend_no;v.vend_name After Save + Edit column info, you can set: po.ord_no,,PO No.;po.vend_no,,Vendor number;v.vend_name,,Vendor name.

  • Result columns: po.ord_no,v.vend_name (key and description).

  • Table list: poordhdr_sql.

In the column settings screen:

Quick search column Set to Both. If this is not set, manually typed purchase order numbers cannot be found in the browser.

Domain Set to bkstnr_sub. The domain determines the field length; here, the length is 8, so the order number field is also length 8. If no domain is set, the length falls back to the default Free Text field length.

Because the key ord_no is a text field, this browser can be selected in any Free Text field.

Additional configuration:

  • Division Set to Creator (division). The purchase‑order browser will use the creator’s division.

  • Result columns (in the free field) po.ord_no,po.ord_no,v.vend_name

    • First po.ord_no is the key.
    • The second po.ord_no and v.vend_name are used in the reference/link.
  • Reference URL ICEMPoOrder.aspx?OrderType=N&Division=@Division&OrderNo= This link opens the InterConnect purchase order application.

    • @Division is automatically replaced by the creator’s division.
    • OrderNo is filled automatically based on the selected order.
  • Reference SQL

    SELECT ord_no,
    v.vend_name
    FROM poordhdr_sql po
    INNER JOIN apvenfil_sql v ON v.vend_no = po.vend_no
    WHERE LTRIM(RTRIM(ord_no)) = @P1

    @P1 is automatically replaced by the order number.

  • Show inputfield Checked. Users can type the order number manually or select it from the browser.

In the request, the browser shows purchase orders and a link to the back‑office application. When the value changes, the reference and displayed data are updated accordingly.

A new Free Text field is added to the request, and the standard SalesOrder browser is selected for this field. The division used by the browser is based on the division of the person in the request. When you open the browser, you can only view the information; you cannot change the browser details because this is a standard browser. By default, the standard SalesOrder browser returns the ordernr column as the result. In this example, we change the behavior by setting Result columns in the request field definition to ordernr,refer. Without this change, the reference/link will display only the order number; after the change, it displays the sales order description instead.

Set the Reference URL to:

LogOrderBO.aspx?Type=V&Division=@Division&Number=

Workflow Plus Browser

This URL opens the sales order from the Exact Globe back office in Synergy, using the selected division and order number.

In the request, the browser field will show the adjusted description based on the result and reference settings.

Workflow Plus Browser

You can add a standard Item request field with a fixed selection option. However, this standard selection cannot depend on other request fields. To make the item list depend on another field (for example, an assortment), you can use the browse field option. Workflow Plus Browser In addition to free fields having a Browse section (to link your own browser), standard browse request fields such as item1, item2, person, and project also have this Browse section. When you link your own browser there, it will replace the standard browser.

In this example, we create an item browser that depends on an assortment free field. When users browse, only items linked to the selected assortment will be shown.

  • Use Free number field 1 as the assortment field, with the standard reference selection Assortments. Workflow Plus Browser
  • For the standard Item field, create a new item browser named ItemAssortmentsDependency. This browser will replace the standard Item browser. Workflow Plus Browser

Configure the browser as follows:

  • Query
    SELECT ItemCode, Description
    FROM Items
    WHERE Assortment = ?
    ORDER BY ItemCode

The ? parameter will be replaced by the value of the dependency field, in this case Free number field 1 (the assortment field).

  • Column info ItemCode;Description This can be further edited via Save + Edit Column info.

  • Result columns ItemCode;Description These define the key and the description shown in the browser; the fields are separated by a semicolon.

  • Query parameters Assortment This is the column used with ? in the WHERE clause. It must be linked to the field that the browser depends on (the assortment free field).

  • Table list Items This is the table used in the query, including any aliases if required.

After you save the browser and open the Item request field, the Browser section will show a Dependency: Assortment field with a drop‑down list of available request fields. Select Free number field 1 (labeled “Assortment” in this example). Workflow Plus Browser Once saved, the Item browser will depend on the assortment field, and only items belonging to the selected assortment will be displayed. Workflow Plus Browser

The Reference Field feature shows additional data based on other fields in the request. It can be used without a browser, but it is often used together with a browser to show additional information based on the selected value.

For example, it can be used to show address data, phone numbers, email addresses, or other related information based on the selected value in the browser.

The Reference Field uses an SQL query to retrieve the additional information, and the query can use parameters based on other request fields.

When adding a new request Text field, the Reference Field section is available.

The available fields are:

FieldDescription
DependencyThe field on which the reference depends.
Column nameThe column or SQL expression used to retrieve the data to be displayed in the request form.
Join tableThe table to join when the data to be displayed is not available in the dependency table but is available in a related table.
Join clauseThe join clause for the join table.

Example 1 – Email and phone number of a person Workflow Plus Browser The example shows the email address and phone number of the person selected in the browser.

Mail and telnr_prv are columns in the humres table for the email address and phone number.

By separating them with + char(13) +, the phone number is displayed below the email address.

The Column name is:

mail + char(13) + telnr_prv

And this is how it looks in the request form: Workflow Plus Browser

Example 2 – Address details for the parent account Workflow Plus Browser This example shows the address details of the parent account based on the account selected in the browser.

Not every account has a parent account.

The Column name is:

ISNULL(c2.cmp_fadd1,'') + char(13) +
ISNULL(c2.cmp_fadd2,'') + char(13) +
ISNULL(c2.cmp_fadd3,'') + char(13) +
ISNULL(c2.cmp_fpc,'') + ' ' +
ISNULL(c2.cmp_fcity,'')

Join table:

cicmpy c2

Join clause:

c2.cmp_wwn = cicmpy.cmp_parent

The ISNULL function is used in case one of the columns does not have a value, so the result does not return NULL.

And this is how it looks in the request form: Workflow Plus Browser