COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Topic started by: Desperado on 01 Jun 2007 09:04:39 AM

Title: JavaScript Clarification Required
Post by: Desperado on 01 Jun 2007 09:04:39 AM
Do we need to change the existing javascripts (Cognos reportNet ) if we want to use the same in Cognos 8.2 ? 
Title: Re: JavaScript Clarification Required
Post by: goose on 01 Jun 2007 09:13:48 AM
Assuming "javascripts" is your custom javascript used to access prompt controls no you wont. But you may might want to read this post http://www.cognoise.com/community/index.php?topic=2327.0

Title: Re: JavaScript Clarification Required
Post by: Desperado on 01 Jun 2007 10:45:01 AM
Thank you for the reply .
I saw the example in the link specified ..... How do you Auto submit the value ??? It's not working for me .
Do i need to use this :
setTimeout('listBox<fieldname>.autoSubmit()', 100);
if it is to be used , then do i need to specify the field name ??? what is the field name there ?
is that the queryitem which we are using for the prompt ?
how do i specify it ??
can i just use the name or do i need to type in the [package name].[QS name].[Query item]
i tried it ,but it didnt work for me ....

thanks in Advance
Title: Re: JavaScript Clarification Required
Post by: goose on 02 Jun 2007 03:01:54 PM
Hi Desperado - please can you explain what what you are trying to achieve?
Title: Re: JavaScript Clarification Required
Post by: cognos8_1 on 03 Jun 2007 12:41:58 AM
setTimeout('listBox<fieldname>.autoSubmit()', 100);

Here field name is the name of the control on the prompt page or report page. Since it is 'ListBox',  check what name has been given for the ListBox in the propertise pane (under 'name' ). Mention the same 'name' at the above <field name>

Title: Re: JavaScript Clarification Required
Post by: Desperado on 04 Jun 2007 08:55:38 AM
Thank you ..... It's working now