Powered by MSDN

US - English
NEW! Silverlight 5 is available Learn More

Navigate from PivotViewer to HRef URL RSS

4 replies

Last post Jun 20, 2011 08:47 PM by Jbenisek

(0)
  • Luis Abreu

    Luis Abreu

    Member

    5 Points

    13 Posts

    Navigate from PivotViewer to HRef URL

    Jul 02, 2010 11:29 AM | LINK

    Hello guys. I'm wondering if there's any thing one can do to get automatic navigation for the Href urls when clicking over an item. According to the docs (http://www.getpivot.com/developer-info/excel-tools.aspx): "Href- A URL associated with this item. Double-clicking the item in Pivot will navigate the user to this URL." Now, this does not happen automatically and I had to handle the LinkClicked and ItemDoubleClicked events to navigate to the URIs. Did I miss something? Or are the docs not clear on how the HRef is used?

    PivotViewer Navigate

    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Andrew Cox

    Andrew Cox

    Member

    216 Points

    33 Posts

    Re: Navigate from PivotViewer to HRef URL

    Jul 02, 2010 08:48 PM | LINK

    Those docs are referring to the operation of the client. You want to handle ItemDoubleClicked and LinkClicked, as you do now. There are example implementations of handlers for these events in the sample that gets installed with the SDK. The motivation for *not* handling these internally is to allow for flexibility in how they are handled.

    For example:

    1. Should the link open in the current tab, or in a new tab?
    2. If the link is to another collection, should it open in the same PivotViewer, or start a new page that contains a PivotViewer control, and load the collection there?
    3. Maybe you want to run some instrumentation code that counts how many times a link was opened, to collect more data about how your users are interacting with the collection

     

  • Luis Abreu

    Luis Abreu

    Member

    5 Points

    13 Posts

    Re: Re: Navigate from PivotViewer to HRef URL

    Jul 02, 2010 11:02 PM | LINK

    Yes, I do agree with your arguments. I'd also say that it would be best to update the way the docs describe the fields. Currently, anyone reading it thinks that it should automatically navigate to that URL when that isn't the case.
    --
    Regards,
    Luis Abreu
    email: labreu_at_gmail.com
    EN blog:http://msmvps.com/blogs/luisabreu
  • Andrew Cox

    Andrew Cox

    Member

    216 Points

    33 Posts

    Re: Re: Navigate from PivotViewer to HRef URL

    Jul 03, 2010 05:15 PM | LINK

    Agreed, thanks for the feedback. I will ask the content owners for that page to update this!

  • Jbenisek

    Jbenisek

    Member

    30 Points

    23 Posts

    Re: Re: Navigate from PivotViewer to HRef URL

    Jun 20, 2011 08:47 PM | LINK

    Does anyone have a link or documentation on how this is performed?

    I built 3 massive and great pivots assuming to my fault the documentation for the client would apply here too.

    This is frustrating