13 Oct 2023 07:42 PM
I am trying to use the TimeframeSelector in a code tile as the results from my function are not constrained by the time selector on the dashboard. I have found the TimeframeSelector code here: TimeframeSelector | Dynatrace Developer but that is for the AppEngine, I have not been able to use it in a dashboard tile. I can add the import, but I am not sure how to use the value in the tile. As a caveat, I am not a developer, but I do play one on TV.
Solved! Go to Solution.
13 Dec 2023 12:30 PM
Hi @TomLichti ,
Have you found the answer to your question as time passed, or do you still require our assistance? Let me know, and I'll figure something out 🙂
13 Dec 2023 03:50 PM
I have not found an answer, so anything you could help with would be great!
18 Dec 2023 10:00 AM
@TomLichti According to our engineers, strato components like the TimeframeSelector can only be used by developers when writing a Dynatrace app. The code within code tiles will be executed on the server, so it can't contain any UI widgets.
It is only possible in code tiles to access the dashboard timeframe by using the built-in variables $dt_timeframe_from
and $dt_timeframe_to
. Tile-specific timeframes are not supported yet but will surely come in the future.