COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: ComplexQry on 19 Jan 2010 11:07:19 AM

Title: HTML to change Radio Button Default Selection
Post by: ComplexQry on 19 Jan 2010 11:07:19 AM
while designing in Cognos 8.2, this code worked fine to change the default option from "Start with Any of these keywords" to "Contains any of these keywords"

Needed the Cognos 8.4 code which will change the default option to "Contains any of these keywords" and "XXX" is the name of the Search and Select Object
<script>

document.forms("formWarpRequest")._sws_XXX_matchAnywhere.value = 'true';
document.forms("formWarpRequest")._sws_XXX_matchAll.value = 'false';
document.forms("formWarpRequest").swsOptionXXX(2).checked=true;

</script>

I am trying to do the same thing in Cognos 8.4... but it doesnt work.

Can any one of you help me in this....