Query - Ability to programatically configure Jump to Another Report


Query - Ability to programatically configure Jump to Another Report
Author
Message
Zeljka Mikulic
Zeljka Mikulic
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)
Group: Forum Members
Posts: 2, Visits: 1

Hi Support,

We have an existing Reporting Services 2005 Report with an embedded Nevron floating bar chart.  The user is able to jump to another report by clicking on the corresponding bar they would like to see more detailed data for.   However, not all the bars should be able to jump to another report.  We want to amend the report to either enable or disable the ‘Action –> Jump to another report’ based on the value of a particular data item in the underlying dataset.
Is it possible to do this in a programmatic manner?  If so, how could this be achieved?
Attached is a word document with more details, as well as the chart configuration file.

Regards,

Zeljka.


Attachments
Reply
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K

Hi Zeljka,

Yes you can alter the generated interactivity using custom source code. In general each object that supports interactivity exposes an interactivity object. In the case of series data points those interactivity objects are stored in the interactivity styles collection of the series - the following snippet shows how to iterate trough them:

   int count = bar.Values.Count;

   for (int i = 0; i < count; i++)
   {
    NInteractivityStyle interactivity = bar.InteractivityStyles[i] as NInteractivityStyle;

    if (interactivity != null)
    {
     NInteractivityAttributeCollection interactivityAttribytes = interactivity.InteractivityAttributes;

     // do something with the interactivity attributes
    }
   }

Where bar is an instance of bar series. When the control generates interactivity attributes it will place one of the following attributes in the attributes collection per data point:

NRSBookmarkInteractivityAttribute
NRSDrillthroughInteractivityAttribute
NRSHyperlinkInteractivityAttribute

If you wish to disable the interactivity per data point you can simply erase the interactivity style for a particular data point:

bar.InteractivityStyles.Remove(dataPointIndex);

Hope this helps - let us know if you meet any problems.



Best Regards,
Nevron Support Team


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search