...

Auto-Size Search and Select Prompts Tip or Technique Product(s): IBM Cognos 8

by user

on
Category: Documents
9

views

Report

Comments

Transcript

Auto-Size Search and Select Prompts Tip or Technique Product(s): IBM Cognos 8
Tip or Technique
Auto-Size Search and Select
Prompts
Product(s): IBM Cognos 8
Area of Interest: Reporting
Auto-Size Search and Select Prompts
2
Copyright and Trademarks
Licensed Materials - Property of IBM.
© Copyright IBM Corp. 2010
IBM, the IBM logo, and Cognos are trademarks or registered trademarks of
International Business Machines Corp., registered in many jurisdictions worldwide.
Other product and service names might be trademarks of IBM or other companies. A
current list of IBM trademarks is available on the Web at http://www.ibm.com/legal/
copytrade.shtml
While every attempt has been made to ensure that the information in this document
is accurate and complete, some typographical errors or technical inaccuracies may
exist. IBM does not accept responsibility for any kind of loss resulting from the use
of information contained in this document. The information contained in this
document is subject to change without notice.
This document is maintained by the Best Practices, Product and Technology team.
You can send comments, suggestions, and additions to [email protected]
Business Analytics
Auto-Size Search and Select Prompts
3
Contents
1
INTRODUCTION..............................................................................................4
1.1
1.2
PURPOSE..................................................................................................................4
APPLICABILITY.............................................................................................................4
2
DEFAULT BEHAVIOUR.................................................................................... 4
3
MAKING SELECT AND SEARCH PROMPT DYNAMICALLY RE-SIZE................. 5
Business Analytics
Auto-Size Search and Select Prompts
4
1 Introduction
1.1
Purpose
Often with large text items, the Select and Search prompt display areas are
not wide enough to display the data. This document details an optional
setting which may be used to make the display areas dynamically re-size to
meet the demands of the wider data.
1.2
Applicability
The setting addressed in this document applies to:
 IBM Cognos 8 Business Intelligence 8.4 Fix Pack 2 and higher
releases.
2 Default Behaviour
By default the Select and Search prompt control display areas are fixed width
and therefore wide information is cut off1:
Note an artificially wide item was created using the expression 'Product Line: ' + cast
([Product line code], char (5) ) + ' ' + [Product line].
1
Business Analytics
Auto-Size Search and Select Prompts
5
3 Making Select and Search Prompt Dynamically Re-size
1. Locate and backup the file ..\c8\webcontent\prompting\properties.js
located within an install of the IBM Cognos 8 gateway component.
2. Set the SYSTEMPROPERTY_CSEARCH_AUTO_RESIZE_RESULT_LIST
to true.
// Copyright (C) 2008 Cognos ULC, an IBM Company. All rights
reserved.
// Cognos (R) is a trademark of Cognos ULC, (formerly Cognos
Incorporated).
/* Use this file to override flags in the prompt controls. */
/*
Use the following flag to disable search request when the
user press Enter in the search input box.
This is a workaround to prevent searches when users use
japanese IME input control.
*/
var Search_DisableEnterKeyAutoSubmit = false;
var SYSTEMPROPERTY_CSEARCH_AUTO_RESIZE_RESULT_LIST = true;
var SYSTEMPROPERTY_CREATE_CUSTOM_SCRIPTS_REFS = true;
var SYSTEMPROPERTY_CUSTOM_SCRIPTS_OVERRIDE_FORM_SUBMIT = false;
var SYSTEMPROPERTY_REORDER_DROPDOWN_VALUES_IN_RANGES = false;
The Select and Search prompt control display areas are variable width and
therefore wide information is no longer cut off:
Business Analytics
Auto-Size Search and Select Prompts
Business Analytics
6
Auto-Size Search and Select Prompts
This also works with multi-value Select ad Search prompts as illustrated
below.
Notice that both the left (Results) and right (Choices) display areas are now
dynamically re-sized due to the applied setting.
Business Analytics
7
Fly UP