Parameterized Queries - Document Composition - Foundation 24.1 - Foundation 24.1 - Ready - OnBase - external - OnBase/Document-Composition/Foundation-24.1/Document-Composition/Configuration/Placeholders/Creating-Placeholders/Configuring-Database-Query-Placeholders/Creating-Database-Queries/Parameterized-Queries - 2024-03-25

Document Composition

Platform
OnBase
Product
Document Composition
Release
Foundation 24.1
License

Parameterized Queries allow data gathered from an ODBC connection to be more dynamic. Within a SQL query, you can use the values of other Placeholders in the template as part of your query.

For example:

SELECT column1 FROM table WHERE column2 = ‘&PlaceholderName'

In this example, &PlaceholderName will be replaced by the value of the field named 'PlaceholderName' before the query is executed.

Note:

Ensure the syntax used for the SQL query is valid. The 'PlaceholderName' that is contained in the SQL query cannot contain any spaces.