Advertisement

08.25.2008 at 07:52PM PDT, ID: 23677295
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

8.1

Using Javascript to conditionally override a link within Cognos 8

Asked by nmcdermaid in JavaScript, Scripting Languages, JScript

Tags: , , ,

Hi,

I am currently using Cognos 8 to develop reports. Cognos 8 renders reports as a web page by mixing up a report template and source data. To achieve a lot of advanced functionality in Cognos 8 its necessary to embed HTML tags in the report template. These tags contain javascript. For example embedding DIV tags around a combo box control, then assigning some javascript to the object identified by the DIV tags.

So basically I am bound by what I can achieve by embedding these tags DIV.

What I want to do is conditionally override a couple of HREF links in my report, based on a label at the top of the report. When this Label is 'N' I want to override some HREF links with a popup box that says 'you can't do that'. When the Label is 'Y' I want the links to do what they are hard coded to do.

Another complication is that the individual HREF links are not in the template so I can't apply javascript to them individually before hand. I need to apply the javascript override to a whole group of links. Again the whole group can be surrounded by DIV (I think), and they all do the same thing.... eiher show a pop up box or perform their original intention (go to a link)


So:

1. Is it possibly to write javascript which overrides a hard coded HTML link?
2. Is it possible to conditionally enable/disable this override based of a bit of text earlier in the page (which would concievably have DIV tags around it)
3. Is it possible to do this for a whole group of HREF links in a generic fashion - either override them all or not.
4. Can you help me with the code for this, including DIV (as we cannot refer to objects by name we need to surround them by DIV's)

I realise this is a hefty question. Any assistance is appreciated, even if you can't answer it all.Start Free Trial
[+][-]08.25.2008 at 09:36PM PDT, ID: 22311626

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 09:47PM PDT, ID: 22311673

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 10:05PM PDT, ID: 22311734

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 10:36PM PDT, ID: 22311817

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 10:57PM PDT, ID: 22311892

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: JavaScript, Scripting Languages, JScript
Tags: SUN?, Java Script, don't know, Cognos 8, Conditionally override a link
Sign Up Now!
Solution Provided By: scrathcyboy
Participating Experts: 1
Solution Grade: A
 
 
[+][-]08.25.2008 at 11:00PM PDT, ID: 22311903

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 11:25PM PDT, ID: 22312022

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.25.2008 at 11:45PM PDT, ID: 22312131

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 07:10PM PDT, ID: 22321299

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 08:22PM PDT, ID: 22321591

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]08.26.2008 at 09:46PM PDT, ID: 22321924

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20081112-EE-VQP-42 / EE_QW_2_20070628