Parameterized Queries - Parameterized Queries - OnBase - Document Composition - OnBase/Document-Composition/Foundation-24.1/Document-Composition/Configuration/Placeholders/Creating-Placeholders/Configuring-Database-Query-Placeholders/Creating-Database-Queries/Parameterized-Queries - Foundation 24.1 - Foundation 24.1

Document Composition

Platform
OnBase
Product
Document Composition
Release
Foundation 24.1
License
ft:lastPublication
2024-03-25T13:33:54.575000
ft:locale
en-US

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.