Prompt API for IBM Cognos Analytics

The JavaScript Prompt API provides report authors with a method of customizing prompt interaction in the reports they author.

With the prompt API, JavaScript applications can interact with IBM® Cognos® Analytics report prompts for the purposes of validation or custom interaction. The prompt API can query and set user selections, validate typed-in values using patterns, set default values using expressions or query data, and more. Examples are provided to show various usage scenarios of the prompt API.

Note: The prompt API does not support tree and search prompt controls. Additionally, date and date & time prompt controls do not support the setValidator method.