Pinned topic Default Selection of Select and Search Prompt Using JS
The following code was fine for 8.2 to change the default selection under 'options' in a select and search prompt.
// Contains any of these keywords
document.forms("formWarpRequest")._sws_Acc_Prompt_matchAnywhere.value = 'true';
document.forms("formWarpRequest")._sws_Acc_Prompt_matchAll.value = 'false';
Now we're in 8.3 and this code is not working any more; Has anyone used it with updated version please?
Thanks in advance.
MChandrasekhara 270004QXK59 PostsACCEPTED ANSWER
Re: Default Selection of Select and Search Prompt Using JS2012-09-10T08:00:28Z in response to Suresh_RegmiHi ,
Can anyone help out on this requirement “Cognos Select search prompt with default option as “Contains any of these keywords” .
How can I achieve…
Thanks for an advance
DanielWagemann 2700058MAJ411 PostsACCEPTED ANSWER
Re: Default Selection of Select and Search Prompt Using JS2012-09-10T12:25:00Z in response to MChandrasekharaReport spec taken from http://www-01.ibm.com/support/docview.wss?uid=swg21343293 work like a charm in both 8 and 10.1.1.
nycognosdev 270006EHBT1 PostACCEPTED ANSWER
Re: Default Selection of Select and Search Prompt Using JS2013-06-18T20:42:12Z in response to DanielWagemann
Also NOTE that we are using Cognos 10.2 so please let me know if this would work in 10.2 or not.
var optNo = 3;
// 1 = Starts with any ... (default)
// 2 = Starts with first ...
// 3 = Contains any ...
// 4 = Contains all ...
var optCnt = 0;
var mySpan = document.getElementById("mySpan1");
var myInput = mySpan.getElementsByTagName("input");
OpherB 270003XT4A638 PostsACCEPTED ANSWER
Re: Default Selection of Select and Search Prompt Using JS2013-06-18T23:09:45Z in response to Suresh_Regmi