# Dashboard using Javascript

**URL:** <https://community.dynatrace.com/t/dashboard-using-javascript/49663>\
**Category:** Dashboarding\
**Tags:** dashboards\
**Created:** [January 10, 2025, 6:24pm UTC](https://community.dynatrace.com/t/dashboard-using-javascript/49663 "2025-01-10T18:24:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stephen1\_Lee](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@Stephen1\_Lee](https://community.dynatrace.com/u/Stephen1_Lee)\
**Post date:** [January 10, 2025, 6:24pm UTC](https://community.dynatrace.com/t/dashboard-using-javascript/49663/1 "2025-01-10T18:24:26Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![RohitBisht](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/rohitbisht/32/38577_2.png) [@RohitBisht](https://community.dynatrace.com/u/RohitBisht)\
**Post date:** [January 11, 2025, 2:06am UTC](https://community.dynatrace.com/t/dashboard-using-javascript/49663/2 "2025-01-11T02:06:26Z")

</div>

Hi&nbsp;[@Stephen1\_Lee](https://community.dynatrace.com/user/24856)&nbsp;,  
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](https://developer.dynatrace.com/design/components-preview/forms/TimeframeSelector/props/)

$username
