IBM Support

How to prompt for selection of data source and/or schema

Troubleshooting


Problem

This document details one possible way to ensure that you are prompted to select a Content Manager data source and/or database schema prior to executing queries.

Resolving The Problem

1. Create a new table in your database that contains the names of the Content Manager data sources (e.g. TestDB1, TestDB2 etc...).

2. In Framework Manager create a new query subject based on that references the table from step 1. E.g., [Tables].[DataSource_Selection].[cmDataSource]

3. Add the prompt macro expressions below as the values for the Content Manager Datasource and Schema properties of the data source in Framework Manager.

Content Manager Datasource: #prompt('Data Source', 'token', '', 'Select a Datasource: ', '[Tables].[DataSource_Selection].[cmDataSource]')#

Schema: #prompt('Schema Name:','token')#

[{"Product":{"code":"SSEP7J","label":"Cognos Business Intelligence"},"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Component":"Report Studio","Platform":[{"code":"PF033","label":"Windows"}],"Version":"10.1;10.2;10.2.1;10.2.2;8.4.1","Edition":"","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
15 June 2018

UID

swg21374654