Skip to content

Condition Database Operations

dotIO™ edited this page May 15, 2026 · 1 revision

Condition Database Operations

The Condition Database Operations section provides functions for importing existing conditions from the database for a selected Source Type and for generating SQL update queries based on the current Condition List.

Unlike the Smart Script database import, the Conditions section does not use predefined entries. Conditions are imported by Source Type.

Functions

  • Import for SourceType from ...

    • These buttons require correctly configured database connections in the Settings section.
    • Imports existing condition rows from the conditions table for the selected Source Type.
    • See the detailed description below.
  • Generate SQL Code

    • Opens a window that allows the generated SQL update query to be reviewed and copied to the clipboard.
    • The generated query is based on all conditions currently defined in the Condition List.
image

Import Conditions for Source Type from Database

This function allows importing conditions from the conditions table by Source Type.

Since the Conditions section does not use predefined entries, the Source Type must be declared before the import can be executed.

image

The Source Type can be selected in two ways:

  • manually in the Set Source Type window
  • automatically from the currently selected condition row

Manual Source Type Declaration

After clicking an import button, the Set Source Type window is opened.

In this window, the Source Type must be declared.

  • Source Type

    • The source type ID can be entered manually if known.
    • Pressing Accept confirms the entered value.
  • Search / Change

    • Opens the source type search window.
    • This can be used to search for and select a Source Type instead of entering the numeric ID manually.
  • Comment

    • Displays the documentation comment for the selected Source Type.
  • Warning

    • Displays additional warnings for the selected Source Type.
  • SourceGroup, SourceEntry, SourceId, and ConditionTarget

    • These fields display the parameter documentation for the selected Source Type.
    • They are used to explain how the imported condition rows will be interpreted.
    • They are not predefined entry fields like in the Smart Script import workflow.

After pressing Set, the application imports all matching conditions for the selected Source Type from the selected database connection.

Import Using the Selected Condition Row

If a condition already exists in the Condition List and is currently selected, its Source Type can be used for the import.

After clicking an import button, the application asks whether the Source Type from the selected condition row should be used.

image
  • Yes

    • Uses the Source Type of the selected condition row.
    • The Set Source Type window is skipped.
    • Conditions for that Source Type are imported directly.
  • No

    • Opens the Set Source Type window.
    • A Source Type can be selected manually.

This option is useful when additional conditions should be imported for the same Source Type that is already being edited.

Import Result

Imported conditions are added to the Condition List and can be edited like manually created conditions.

The imported rows keep their condition values, including SourceGroup, SourceEntry, SourceId, ElseGroup, ConditionType, ConditionTarget, ConditionValue1, ConditionValue2, ConditionValue3, NegativeCondition, ErrorTextId, ScriptName, and Comment where available.

The imported conditions can be modified, deleted, or used as a base for new condition rows before generating SQL code.

Generate SQL Code

The Generate SQL Code button creates an SQL query from the current Condition List.

The generated query reflects the condition rows currently loaded in the application.

Before executing the generated SQL manually, review the output carefully, especially when imported conditions were edited or deleted.

Clone this wiki locally