Top Banner
© 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th , 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track Closing ) Jenzabar’s Annual Meeting May 27 - 30, 2015 Gaylord Opryland Resort & Convention Center Nashville, TN
29

© 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

Dec 30, 2015

Download

Documents

Laura Griffin
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

James MuellerGraceland UniversitySaturday May 30th, 11:00am – 12:00pm

447: Cognos Customization Showcase                   ( and CX/JX II Track Closing )

Jenzabar’s Annual MeetingMay 27 - 30, 2015

Gaylord Opryland Resort & Convention CenterNashville, TN

Page 2: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Performance

User Experience• Appearance • Author Assistance

Why did we Customize?

Page 3: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

\bin\cogdmif.iniControls the way in which Cognos works with Informix for SQL generationNote: Problem 1 should be done by your school

Page 4: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Caused When• 3 or more tables are needed for your query• 1 or more tables are outer joined in model

Symptom• Generated SQL shows all fields from table in the SELECT clause• Report fails when field level security is on table and user has no

SELECT permissions to a field• Report fails because SQL statement is too long

Example to Reproduce

Problem 1: Entire Table pulled in SELECT

cogdmif.ini.Problem_1.txt

Page 5: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Solution

Problem 1: Entire Table pulled in SELECT

FIND Nested_Inner_To_Product=TREPLACE Nested_Inner_To_Product=F

Page 6: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Caused When• Any outer joined table is filtered on

Symptom• If field in outer table is filtered on result set is limited to rows that

meet that filter (essentially making it inner joined)• Think aa_rec and cell phones, you likely want all people on the

report and their cell phone if they have one. Solution and Discussion

• http://lists.jenzabar.net/cgi-bin/wa.exe?A2=JENZA-COGNOS-L;c2b680b6.1212

Problem 2: Need Informix Extension Outer Join

Page 7: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

MOVE THE HOURGLASSHourglass indicator defaults to middle of page, this moves it upUseful when embedding reports in JICS so users know it is workingFile

QSRVCommonUI.cssLocation

\webcontent\skins\There will be multiple subfolders that contain these filesSearch for name:QSRVCommonUI.css contents: modalwaitpage

Page 8: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

ExampleBefore After

Page 9: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Do a find and replace in a text editor that support REGEX• Such as Notepad++• Make sure you have “.” matches new line selected

CSS Change

FIND \.modalWaitPage\s\{.*?(?=\})(?<=\n)REPLACE .modalWaitPage\n{\n\tdisplay: block;\n\ttext-

align: center;\n\tz-index: 100;\n\tposition: absolute;\n\ttop: 150px;\n\tleft: 150px;\n

Page 10: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

CUSTOM CSS STYLES IN REPORT STUDIOQuick way to add school colors and styling to reportsXML File Changes

\msgsdk\reportstudio_en.xml\webcontent\pat\res\reportstudio_en.xml

CSS File Changes\webcontent\schemas\GlobalReportStyles_10.css\webcontent\reportstyles\GlobalReportStyles_10.css\bin\GlobalReportStyles_10.css\reportstyles\GlobalReportStyles_10.css

Page 11: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Example

IE in Compatibility, Outlook IE in Edge, Chrome, Safari, Etc

Page 12: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Example

In Report Studio

Page 13: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Not fully CSS 3 compliant for PDF output• Report will fail if it doesn’t know how to handle the CSS• this is Adobe’s code issue

Important Note

Page 14: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Add below all other IDS_CLASS_* xml string in file (~line 1992*) <string id="IDS_CLASS_[CSS Class Name]">[Report Studio Class Name]</string>

Example: <string id="IDS_CLASS_gukg">Glass: Black</string>

Our Changes:

XML File Changes

* As of version 10.2.2, this changes with versions

CSS_Changes.xml.txt

Page 15: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

! Must add directly to files, will not work with @import Add below @charset "UTF-8" and above IBM CSS

Example:.gulb{

/* Light Blue with Dark Blue Lettering */padding: 4px 5px 4px 6px;color: #050505;background-image: url('https://cognos.graceland.edu/bi/images/system/gulb.svg');background-color: #5DB7F4;

}

Our Changes:

CSS File Changes

CSS_Changes.css.txt

Page 16: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

COMMENT SYNTAX IN REPORT STUDIOAdds a drag and drop Cognos Comment syntax to Report StudioAllows authors to not have to remember the syntaxFiles

\Configuration\Functions\ExpStrings_en.xml\Configuration\Functions\ExpTree.xml

Page 17: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Example

Page 18: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Add below <!-- Common Operators --> (~line 106*) <string id="ces_comment.tip" type="String">Adds a comment to your Report Studio Expression</string><string id="ces_comment.syntax" usage="Custom" type="String">#/* Comment Goes Here */#</string>

XML File Changes – ExpStrings_en.xml

* As of version 10.2.2, this changes with versions

Page 19: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Add below <!-- Common Operators, see COP section in strings files --> (~line 16*)<operator>

<id>ces_comment</id><name>#/* Comment */#</name><dropText>#/*

Comment Goes Here*/#</dropText></operator>

XML File Changes – ExpTree.xml

* As of version 10.2.2, this changes with versions

Page 20: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

DEFAULT QUERY STUDIO TO NO-DATA MODESpeeds authoring in Query StudioFile to change

\templates\ps\async\system.xml.sampleInstructions

http://www-01.ibm.com/support/docview.wss?uid=swg21344995

Page 21: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

TURN OFF QUERY RESULT CACHINGAllows database changes to be seen immediatelyDoes slow down reports when used in rapid succession (re-runs query every time)Template file location

\configuration\CQEConfig.xml.sampleSave as

\bin\CQEConfig.xml\configuration\CQEConfig.xml.sample

Same file as used for Commenting SQL Sent to Informix

Page 22: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Find and Replace

Changes

FIND <entry name="queryReuse" value="5"/>

REPLACE <entry name="queryReuse" value="0"/>

Page 23: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

COMMENT SQL SENT TO INFORMIXSee from Informix side who is running the SQL from CognosHelpful when trying to find out who is bogging down the system (onstat –g sql SESSID)Template file location

\configuration\CQEConfig.xml.sampleSave as

\bin\CQEConfig.xml\configuration\CQEConfig.xml.sample

Same file as used for Turning Off Query Result Caching

Page 24: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Example

User

Folder

Report

SQL

Page 25: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Find and Replace

Changes

FIND <!-- entry name="GenerateCommentInNativeSQL" value="1"-->REPLACE <entry name="GenerateCommentInNativeSQL" value="1"/>

FIND <!-- entry name="NativeCommentMacro" value="#'user=' + $account.defaultName + ' reportPath=' + $reportPath + ' queryName=' + $queryName + ' REMOTE_ADDR=' + $REMOTE_ADDR + ' SERVER_NAME=' + $SERVER_NAME + ' requestID=' + $requestID#"/-->

REPLACE <entry name="NativeCommentMacro" value="#'user=' + $account.defaultName + ' reportPath=' + $reportPath + ' queryName=' + $queryName#"/>

Page 26: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

CX/JX II TRACK CLOSING

Page 27: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

         Enhancement Requests

“…to inform Jenzabar Corporation of the needed and desired product enhancements.”

First year for Institutional Intelligence ehancement requests• Already have: Faster model updates for SMOs

Blank Form:• https://cognos.graceland.edu/public/ERF.docx

Return To:• [email protected]• By first week of June

Page 28: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Session Requests

Sessions you want to see repeated (any JAM years) Sessions you want to see that haven’t been presented

Page 29: © 2015 Jenzabar, Inc. James Mueller Graceland University Saturday May 30 th, 11:00am – 12:00pm 447: Cognos Customization Showcase ( and CX/JX II Track.

 © 2015 Jenzabar, Inc.

Track Opinions / Feedback

Second year we’ve had the II Track First year we had a track coordinator

Send me feedback you want sent on to NACU

Have feedback you don’t want me to know about? Send to:• [email protected]