COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: sunrat on 02 Apr 2008 01:20:40 AM

Title: Cognos report
Post by: sunrat on 02 Apr 2008 01:20:40 AM
hi ,
I have a question.How to import the data from text file into report studio?
Please suggest the solutions.
Title: Re: Cognos report
Post by: biejorrun on 02 Apr 2008 02:05:29 AM
I didn't do this myself, i only saw it during a demo...on your prompt page, create some javascript that imports the contents of your text file into a filter.

I only saw this in a demo, I do not have the code (unfortunately).
Title: Re: Cognos report
Post by: almeids on 02 Apr 2008 09:54:33 AM
I would have naively suggested "read the text file into a text box prompt with Javascript and create a data item from its parameter", but from a little Googling the reading-client-text-file-with-Javascript part is an iffy proposition.
Having said that, Cognos has a Proven Practice document called "Saving Picklist Values to a Local File for Reuse" with JS examples in it.  I wasn't able to get it to work but I'm no good with Javascript, maybe you can tailor its examples for a text box and C8.