Hello
I have a dashboard with 2 panels, in the second one i have a drilldown with link to search
i'm trying to configure token but it is not working
this is what i tried to do:
<init>
<set token="TransactionId">$TransactionId$</set>
</init>
and this is what im getting once clicking on the link:
TransactionId=$TransactionId$
what am i missing ?
thanks
Try using this if you have a column named TransactionId and trying to store it in a token when clicked
<init>
<set token="TransactionId">$row.TransactionId$</set>
</init>
this is the result
TransactionId=$row.TransactionId$
Hi sarit_s,
What initiates the var $TransactionId$? Is it an input from the user? a search result from one of the searches in the dashboard?
Hello
the value is taken from the search before. it is a drilldown
If the value is passed down from another search you shouldn't use <init><set>
by doing so you remove any value that TransactionId token might have held when the search was called.
Just to make sure that I understand the flow:
A base search->clicking the result->opening a new search that should use the result from the previous search
is it correct?
Hey
yes, it’s correct
i also tried with click.value2
If the drill down open a brand new search the simplest way would be to set the drilldown from the editor as 'link to search" and then once you click the value it will be added as a search parameter in the new search.
If the drilldown is connected to the second panel in your dashboard, you should set the token as "click.value2" and make sure that the other panel is dependent on the value of the token.
the drilldown is depends on the second panel and i tried to use click.value2 but it is not working
maybe im using it wrong
i put this :
<set token="TransactionId">$click.value2$</set>
under the drilldown object and i get this error once trying to edit the drilldown through the ui:
Try to delete the lines you've added in the XML.
You can use the editor to add the token
The location of the code in the XML is important, if the <set> command isn't associated with the right panel, the token won't be able to populate.