COGNOiSe.com - The IBM Cognos Community

IBM Cognos 10 Platform => Cognos 10 BI => Cognos Administration => Topic started by: Tseug on 07 Feb 2012 07:23:46 PM

Title: Search functionality
Post by: Tseug on 07 Feb 2012 07:23:46 PM
I'm not sure if this is the right section for this question, but here goes.  We're on C10 and I'd like to make the default for our searches "Name Only".  The default is "Full Text and All Fields".  In C8 the search feature was Name Only by default (at least I think so).  How can we make "Name Only" the default search type?  Thank you in advance.
Title: Re: Search functionality
Post by: Grim on 08 Feb 2012 07:31:47 AM
Check this out...
http://www.ibm.com/developerworks/data/library/cognos/infrastructure/cognos_specific/page541.html

Should answer your question. .properties file change I believe.
Title: Re: Search functionality
Post by: Tseug on 08 Feb 2012 02:52:24 PM
I'm so  ;D  I could  :'( .

thank you!!!
Title: Re: Search functionality
Post by: Grim on 09 Feb 2012 07:00:00 AM
NP, glad I could help.  ;D

*cough*<-Applaud*cough*  ::)
Title: Re: Search functionality
Post by: Tseug on 10 Sep 2012 10:40:22 AM
Sorry to bring an old post back to life, but I discovered this within the user GUI for Cognos that appears to be where the value is set:

{

addMenuItem("findTextInMenu_k","findTextInMenuGroup", "Full text and all fields", "","CCPopupMenu.activeMenu.setMenuItemChecked(\"findTextInMenu_k\");document.mainSearchForm.sfield.value = \'k\';");

setMenuItemChecked("findTextInMenu_k");

addMenuItem("findTextInMenu_n","findTextInMenuGroup", "Name field", "","CCPopupMenu.activeMenu.setMenuItemChecked(\"findTextInMenu_n\");document.mainSearchForm.sfield.value = \'n\';");

addMenuItem("findTextInMenu_d","findTextInMenuGroup", "Description field", "","CCPopupMenu.activeMenu.setMenuItemChecked(\"findTextInMenu_d\");document.mainSearchForm.sfield.value = \'d\';");

addMenuItem("findTextInMenu_nd","findTextInMenuGroup", "Name or description field", "","CCPopupMenu.activeMenu.setMenuItemChecked(\"findTextInMenu_nd\");document.mainSearchForm.sfield.value = \'nd\';");

}


So I need to set the default to 'N' instead of 'K'.
Title: Re: Search functionality
Post by: Cognos8 on 11 Sep 2012 10:16:31 AM
Hi,

It shows the code , but in which file we need to update this in configuration folder??
Title: Re: Search functionality
Post by: snowy on 21 Aug 2014 04:21:44 AM
Just want to re-up Cognos8's 2-year-old question to Tseug: where is that code located?!
Title: Re: Search functionality
Post by: Grim on 21 Aug 2014 09:13:58 AM
<cognos>\templates\ps\logicsheets\presentation\main\presentation.xsl

Friendly reminder - Make sure to make a copy of the file before you make any changes.