cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Dashboard using Javascript

Stephen1_Lee
Guide

HI

Using the new Gen 3 dashboard framework, i have some java script code.

But can I pass to my code the Variables I've created and/or the timestamp in the dashboard time frame selector?

 

I'm guessing I can do this somehow if I use the full App Framework but that requires more development effort.

Thanks

1 REPLY 1

RohitBisht
Dynatrace Advisor
Dynatrace Advisor

Hi @Stephen1_Lee ,
Yes, you can use in the code tile in Gen 3 dashboards. You don't need to create an app for this.
As a reference, you can define a variable named username and use this in your JavaScript code tile.
For timeframe, I have never tried referencing the dashboard timeframe. When building apps, there are options like this:
Properties | Dynatrace Developer



$username


RB

Featured Posts