Prompt API

Using Cognos 10.2 Prompt API to create a multi-select popup prompt

When clicked, this pops up

This solution uses javascript, cascading style sheets and the prompt API to neatly provide a multi-select control that doesn’t use a lot of screen real estate I’ve put together a fully working example against the GOSales (query) package, click the download icon below to get the complete package: There are a few pieces required to make this all work: A CSS script – popup_multi_AM.css A Javascript file – popup_multi_AM.js Five HTML items A text box prompt A list box prompt An image – DropDownPlus.png Note that all of the examples below are hard coded for a ‘Product’ control. popup_multi_AM.css popup_multi_AM.js popup_multi_HTML_Initialise popup_multi_HTML_1 popup_multi_HTML_2 popup_multi_HTML_3 popup_multi_HTML_4 Text Box prompt This control must have the ‘Name’ property set to ‘prDisplayProduct’ List Box prompt This control must have the ‘Name’ property set to ‘prProduct’. DropDownPlus.png Report Studio Layout

read more