COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sg24 on 20 Apr 2011 09:34:44 AM

Title: Java Script to Remove Keywords in Select and Search prompt
Post by: sg24 on 20 Apr 2011 09:34:44 AM
Hi Folks,

Can anybody give me the exact java script code to remove the "keywords , Type one or more keywords separated by commas" which appears in the select and search prompt.

Also i need to remove the "options " in the select and search prompt.

Plz Note: I use Cognos 8.0 version

Thanks,
Sg24
Title: Re: Java Script to Remove Keywords in Select and Search prompt
Post by: sg24 on 25 Apr 2011 04:00:48 AM
Hi Folks,

Please respond to this as this is urgent requirement and needs to be resolved .
Experts in writing java scripts kindly respond.

Any help with this regard would be highly appreciated.

Thanks,
Sg
Title: Re: Java Script to Remove Keywords in Select and Search prompt
Post by: Arsenal on 25 Apr 2011 01:35:28 PM
Sounds like editing the default JS for the SS prompt which comes packaged with Cognos.
This would be a global change so will affect every SS in every report. Also, you will have to reapply the change every time you apply upgrades
Title: Re: Java Script to Remove Keywords in Select and Search prompt
Post by: Arsenal on 25 Apr 2011 01:43:36 PM
ok, I found something for removing "Type one or more keywords separated by commas ". This is taken from elsewhere, so I claim no rights over it  :)

I tested it out on 8.4 and it works. Add the following on your prompt page (header is fine to place it in)

<script>
var PMT_SSM_KEYWORDTIP = " ";
</script>

You could prolly search for "keyword" within the promptingStrings_en.js file located in \webcontent\prompting\res and apply a similar script as above once you locate the JS section that creates the "keyword" text.