COGNOiSe.com - The IBM Cognos Community

IBM Cognos 8 Platform => COGNOS 8 => Report Studio => Topic started by: zammi on 09 Apr 2008 11:46:26 PM

Title: Write data to a temporary table
Post by: zammi on 09 Apr 2008 11:46:26 PM
I'm looking for a way to write some data from a report to a Oracle database. Basically some parameter values and a comments written by user to a temp table upon a button press. Your feedback is appreciated.
Title: Re: Write data to a temporary table
Post by: almeids on 10 Apr 2008 08:20:48 AM
AFAIK the only way to implement inserts/updates is via a stored procedure in the database, but I couldn't tell you how.  You need to include the procedure in FM and then I guess you pass the values you want stored to it via Javascript associated with your button.  Sorry I can't be more specific.
Title: Re: Write data to a temporary table
Post by: Suraj on 14 Apr 2008 11:51:23 AM
You can grab the input from a text box type prompt and pass it to a SP.
Title: Re: Write data to a temporary table
Post by: tmacfarlane on 14 Apr 2008 03:58:35 PM
I came across this example after searching google.  It looks as if SPROCs are the way to go.

http://bicentre.blogspot.com/2007/09/cognos-8-report-studio-comments-box.html
Title: Re: Write data to a temporary table
Post by: zammi on 14 Apr 2008 10:45:25 PM
Thanks for your comments everyone. I went through the http://bicentre.blogspot.com/2007/09/cognos-8-report-studio-comments-box.html and it's great if we can pass some parameters from the report into the asp fille. Any idea if it is possible in report studio 8.3.
Title: Re: Write data to a temporary table
Post by: zammi on 15 Apr 2008 12:01:56 AM
Quote from: zammi on 09 Apr 2008 11:46:26 PM
I'm looking for a way to write some data from a report to a Oracle database. Basically some parameter values and a comments written by user to a temp table upon a button press. Your feedback is appreciated.


This worked for me :-)
1. HTML Source type: Report Expression

2. Expression : Example: '<a href="http://localhost/cognos8/samples/intComments/addComments.asp?' +   [Query1].[Metric Identification Code]  +' "> Add Comments </a>'
Title: Re: Write data to a temporary table
Post by: imnini on 11 Dec 2011 11:58:40 PM
Hi,

You can see this article.

http://www.inergex.com/blogs/business-intelligence/2011/04/21/write-back-your-database-cognos-bi
Title: Re: Write data to a temporary table
Post by: Arpitagrawal9 on 12 Dec 2011 03:19:41 AM
well do u need to write complete dataset or just what ever user selects or enter in the prompts