It would be great if I could share a Data Explorer query with a group and have the query params be pre-filled with the URL params.
For example, if I have this param -- string :username, I should be able to share it with group “my-group” with username “myName”.
Something like this:
https://mydomain.com/g/my-group/reports/100?username=myName
[image]
I recently suggested it would be great to allow query parameters in reports. That way, I could share a Data Explorer URL with a default parameter already filled in. Something like this:
Would anyone be interested in implementing this feature?
If not, does anyone have any pointers that could help me implement it myself?
pfaffman
(Jay Pfaffman)
November 25, 2020, 12:17pm
2
That feature exists. There should be some examples of your search.
Thanks for replying, Jay.
@sam added pr-welcome tag, so I thought it didn’t exist.
What’s the syntax? I’ve tried /reports/100?username=myName
and it doesn’t populate the username text field with myName
.
pfaffman
(Jay Pfaffman)
November 25, 2020, 12:46pm
4
Sorry, I’m conflating reports with the data explorer plugin. You can do that with the data explorer.
I’ve tried /admin/plugins/explorer?id=100&username=myName
and that doesn’t fill the textbox either.
Am I missing something?
pfaffman
(Jay Pfaffman)
November 25, 2020, 12:59pm
6
Oh. Sorry. Now I see. That’s the part that I missed. You know how to write the query and use the parameters, but want to change the defaults with a url. And that’s why it’s pr welcome.
Sorry about that.
No problem. I should have probably explained it better.
How difficult do you think it would be to implement?
1 Like
pfaffman
(Jay Pfaffman)
November 25, 2020, 3:58pm
8
No. I didn’t read. You were clear.
I do not know how to do it. But since your asked, My wild guess is that it’s 2 to 4 hours work with proper specs.