COGNOiSe.com - The IBM Cognos Community

Legacy Business Intelligence => COGNOS ReportNet => Report Studio => Topic started by: nhef on 12 Jun 2006 12:52:59 PM

Title: Navigation via report buttons?
Post by: nhef on 12 Jun 2006 12:52:59 PM
Hi.  We have many reports that are embedded several folder levels deep.  If the user enters the data on the prompt page and gets to the report, it seems like you're only choice for navigation to return to the prompt page (re-prompt button) or the back button.  but the user may want to return to the folder level where they started, or up 1 or 2 more folder levels.  It was suggested by a cognos consultant that you may be able to redirect using URL's, but not wanting to hard code urls on the page, how would you accomplish this?  How would the report know how to travel back up the folder path to various levels?

Thanks.
Nancy
Title: Re: Navigation via report buttons?
Post by: bdybldr on 13 Jun 2006 02:57:47 PM
Nancy,
You can embed within HTML items buttons in the report with values and onClick() event handlers based on where the user wants to be returnedusing JavaScript.

btn.onClick = "document.location = [page to navigate to]"  OR

onClick="history.go(-2)"