12
www.OurStudentsOurFutur e.org Building a Foundation of Strong Leaders

Advanced Javascripting in Cognos

Embed Size (px)

DESCRIPTION

Hillsborough County Public Schools (HCPS) and Convergence Consulting Group (CCG) partner to present Advanced Javascripting in IBM Cognos. HCPS solicited the help of CCG to develop a merit based bonus system to support and develop strong leaders in the Hillsborough Principal Pipeline utilizing IBM Cognos software. Presentation from IBM Cognos Central Florida User Group Meeting help on April 24, 2014 at Rusty Pelican in Tampa, FL.

Citation preview

Page 1: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Building a Foundation of Strong Leaders

Page 2: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org04/13/20232

Supporting & Developing Future LeadersThe Hillsborough Principal Pipeline consists of four integrated components:

Page 3: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org04/13/20233

Leader Selection ToolFocused on Component 3 (Selective Hiring)

• Used for making data driven hiring decisions.

• Used to match the right leader to the right school vacancy.

Page 4: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Cognos Leader Selection Tool

Page 5: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Business Requirements

• Need a solution to filter many different attributes and interact within list

• Select rows within the candidates list and be able to do side-by-side comparisons

• View detailed resume style report for selected candidates after analysis

• Consume different reports in specified formats only (pdf, excel, html)

Page 6: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Overall Solution Design

• Set of three reports

• Main report needed extended functionality• Turn off Cognos Toolbar• Hide Multiselect prompt choice lists until

clicked• Reset report button• Add checkboxes to list object• Pass checked row values to drill-through

reports

Page 7: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Cognos Leader Selection Tool

Page 8: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Using JavaScript in Cognos

Some examples of common uses:

• Hide Cognos toolbars• Validate input boxes• Manipulate default prompt selections • Automatically reprompt • Mimic built in Cognos capabilities (button for pdf,

excel, drill up , drill down)• Passing data values • Changing default behavior of Cognos elements

Page 9: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Considerations for using JavaScript

• Extra testing will be needed when migrating reports to another environment

• Extra regression testing will be needed should there be an upgrade, patch

• Know what browsers you support and Cognos is compatible with based on version. Make sure you test compatibility between browsers

Page 10: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

• Typing in parameter names and arguments

• Standard debug tools/techniques

• Parameter/list names don’t propagate

• Code may behave differently in Cognos viewer versus Report Studio

Considerations for using JavaScript

Page 11: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Tips / Best Practices

• Using tags

• Layout component references for html items that are used across multiple reports

• Place .js file on gateway servers and call script

• Utilize Prompt API

Page 12: Advanced Javascripting in Cognos

www.OurStudentsOurFuture.org

Cognos Prompt API