COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: ms_michael on 29 Oct 2008 01:33:02 AM

Title: How to get tree prompt using javascript
Post by: ms_michael on 29 Oct 2008 01:33:02 AM
Hi all,
   I want use javascript to get tree prompt's select value and listen it's action. How can I get it?
   Thanks.
Title: Re: How to get tree prompt using javascript
Post by: imts on 31 Oct 2008 06:15:29 AM
Why don't u go for the tree prompt provided by the Cognos IDE ? any special reasons for using JS >?
Title: Re: How to get tree prompt using javascript
Post by: ms_michael on 02 Nov 2008 08:37:40 PM
Hi imts,
    Thanks for your reply. I want to get the selection of tree prompt. And I'd like to let tree prompt hide dynamic when I select some level of the tree prompt.
Title: Re: How to get tree prompt using javascript
Post by: imts on 03 Nov 2008 12:50:01 AM
i coudn't understand what u mean by "let tree prompt hide dynamic " !!!
i searched cognos knowledge base for tree prompt using JS but coudnt find anything there.
What i'll suggest u is to make a dimensional model, use the tree prompt given by cognos IDE. U can retrieve the selections made in the tree prompt on report page.
Title: Re: How to get tree prompt using javascript
Post by: ms_michael on 04 Nov 2008 02:15:42 AM
sorry, I think i didn't express my idea clearly enough.  For exmple, when I select a node of tree prompt, it pop-up a message about select value.
Title: Re: How to get tree prompt using javascript
Post by: pattr on 17 Jun 2009 06:29:55 AM
HI am also having the same issue in displaying the tree prompt selected value either  to display in alert box or to store in the variable or  pass it as parameter value.