Escolar Documentos
Profissional Documentos
Cultura Documentos
Ive previously written about using the URL API to answer prompts of
different types, but one feature that has been missing is the ability
to default selectors using this method. Being able to do so would
open up some really cool use cases, such as linking between
dashboards or linking from a subscribed email to a dashboard while
keeping the context for the user.
Well, I stumbled across a really good tech note that describes how
this feature was added to 9.2.1. I was able to get it to work (with
one unfortunate side effect Im still ironing out).
This method isnt exactly for the feint of heart. It feels more like a
hack than an actual supported feature, but well take what we can
get I guess.
Step 1 Get the Base Link
To start, get the base link to your document that contains the
selector you want to control. You can do this by right clicking on the
report in Web, choosing Get Link, and copying the URL from the text
box.
Step 2 Get the ID of the Target Selector
This part might be a little tricky. The Selector ID is going to be 3
characters, starting with a letter, and ending with 2 numbers, ie,
W64. To get it, you have to run your document in Interactive mode
and View Source in your web browser. Itll be a little difficult to find,
youre looking for <select id=W64 though your ID will surely be
different. The best way to find it is to use the Firebug plugin for
Firefox, or Chromes Inspect Element utility. Right click on the