IBM Cognos Analytics - Custom JavaScript Controls - Alternating Background
ฝัง
- เผยแพร่เมื่อ 8 ก.พ. 2025
- Demonstration of a custom JavaScript control for IBM Cognos Analytics that adds alternating background colors to rows of list or crosstab data containers. Requires IBM Cognos Analytics version 11 R4 or later.
Link to demo files: ibm.ent.box.co...
Great Job Jeff
Jeff, I have been trying to learn using your example, but sample code is no longer available and even when i think i typed it all up, seems like there are syntax erros. Maybe this example was meant for version 10?
Did anyone use advanced search and select custom control and have a working code? i have been trying to fix it but no luck so far.
Can you please create a tutorial on using the custom controls? I mean the detail explanation on what ever part of the JS file you added. Can we use any other JS libraries other than Jquery? I want to add a custom multi-select drop down, Is it possible?
Thanks Jeff, for masking this video, however I'm not able to find the js file it would kind if you could share the js file
Thank you for the easy explanation for Custom Controls!
Is it necessary to store the js file into the webcontent folder --> 7:40
If not, how should the Module Patch look like if i want to store the file in another folder? Can you give me an example please that would be great!
Thanks in advance
The js file doesn't have to be stored in the webcontent folder. You could store it anywhere as long as your report can access it. Think of a CDN that hosts JQuery or other libraries a similar concept applies to custom controls.
Hi Jeff I followed the instruction and report getting validated successfully but not appearing the color. In JavaScript do we need to add .css file.
This custom control doesn't use custom .css file. There must be something else going on.
Is it possible to use custom control to export the report in different output formats ?
Custom controls wouldn't be used for exporting the report. The SDK allows you to programmatically export (save as) different formats.