COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: Narendar on 07 Oct 2009 02:56:11 AM

Title: How to pass query item to HTML file in cognos
Post by: Narendar on 07 Oct 2009 02:56:11 AM
HI all,
          I have a requirement where i need to pass object (not parameter) ie query item to html page in report studio where i am writing javascript code and for displaying the content of that object. how can do this in cognos8(8.3) version please let me know

Regards
Narendar
Title: Re: How to pass query item to HTML file in cognos
Post by: dumbell on 07 Oct 2009 09:58:37 AM
You have to refer to the object where queryitem is residing.
For example,
editbox for textbox
prompts usually are lists
then use for loop to read the contents of the object.

Lookup javascript codes for the cognos objects.One caution in 8.3, names of the objects are dynamic.I think you need to use "getelementbyid" method to get to the objects

Hope these pointers will help you in resolving the problem.