Archive
Highlighted

condition match tag in drill down condition based on form input token and drilldown value not working

Communicator

I have set drilldown for pie chart based on a token and it is working.. Now my condition is to display different table based on form input token set and drill down click value.. How could i do that..
I have tried this so far. but its not working..

                  <condition match =  "'$Status$' == Imported to prod">
        <set token="src_type_tok_dev">$click.value$</set>
                 <set token="mytoken1">true</set>
                 <unset token="mytoken2"></unset>
             </condition>
         <condition match="'$Status$' != Imported to prod">
           <set token="src_type_tok_dev">$click.value$</set>
                 <set token="mytoken2">true</set>
                 <unset token="mytoken1"></unset>
             </condition>
    </drilldown>

and then i do .. something like this

table depends="$srctypetok_dev$,$mytoken1$" ...

status here is set from form.. please help

Tags (1)
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Communicator

Can someone please help me with this?

0 Karma
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Communicator

Is this doable.. I don't see many examples for this..

0 Karma
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Legend

Hi k_harini,
let me understand: do you want to perform a drilldown in the same dashboard or in a different one?
Because the method you said is to do a drilldown in the same dashboard not in a different one.
If you want to drilldown in a different dashboard you have to insert in your panel options the following lines

<drilldown>
   <link>your_dashboard?src_type_tok_dev=$click.value$</link>
</drilldown>

If you want you could add additional tokens e.g. Time.earliest and Time.latest adding

&amp;TimeFrom=$Time.earliest$&amp;TimeTo=$Time.latest$

Bye.
Giuseppe

0 Karma
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Communicator

This is in the same dashboard. Condition match is not working with condition match token.

0 Karma
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Legend

Try something like this:

<progress>
   <set token="mytoken">$job.eventCount$</set>
</progress>
<cancelled>
    <unset token="mytoken"></unset>
</cancelled>

Bye.
Giuseppe

0 Karma
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Motivator

A shot in the dark, but can you try to switch the ' from '$Status$' to the string being matched and see if it works. Something like:

<condition match =  " $Status$ == 'Imported to prod' ">
:
:
<condition match =  " $Status$ != 'Imported to prod' ">

Updating little more info based on comment below

Or try to unset the token conventional way

<unset token="mytoken2"/>
:
:
<unset token="mytoken1"/>
0 Karma
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Communicator

I tried that.. It did not work.. 😞

0 Karma
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Motivator

I have the same issues, did you get an answer

 <condition match="$host_token$ != 'UNDEFINED'">
0 Karma
Highlighted

Re: condition match tag in drill down condition based on form input token and drilldown value not working

Champion

You need to use single quotes instead of dollar sign in the condition statement, and the string needs to be wrapped in HTML double quotes with &quot;.

Try this.

  <condition match="'Status'==&quot;Imported to prod&quot;">
    <set token="src_type_tok_dev">$click.value$</set>
     <set token="mytoken1">true</set>
     <unset token="mytoken2"/>
  </condition>
  <condition match="'Status'!=&quot;Imported to prod&quot;">
     <set token="src_type_tok_dev">$click.value$</set>
     <set token="mytoken2">true</set>
     <unset token="mytoken1"/>
  </condition>
</drilldown>