Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
      • General Inquiries
      • DataMiner DevOps Support
      • Commercial Requests
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

How to escape curly braces in URL within a grid component in dashboards

Solved733 views6th July 2023Dashboards
2
Aldrick Gardiner [SLC] [DevOps Advocate]163 5th July 2023 0 Comments

Hi,

We use a grid component in dashboards to use basic HTML to create a hyperlink(we understand this is a soft-launch feature.) We connected the hyperlink to a GQI query that returns a URL link to another dashboard by using the name of the return parameter between curly braces which works fine. The issue we are having is the link returned by the GQI query contains curly braces to filter the dashboard for a specific entry which causes the hyperlink not to work in its entirety, it takes us to the dashboard but does not filter for the specific entry. Is there a way to escape the curly braces?

Aldrick Gardiner [SLC] [DevOps Advocate] Selected answer as best 6th July 2023

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
7
Gilles Bara [SLC] [DevOps Enabler]6.80K Posted 5th July 2023 1 Comment

Hello

Great to hear you are experimenting with the Grid visualization. It is a very powerful tool to take your dashboards and low-code apps to the next level. You have to take some things in mind though. When you are using a value directly in the text shape as href attribute of an anchor tag, you should make sure everything is properly url encoded, otherwise you could end up with the issue you're currently facing. To resolve this you could replace { by %7B and } by %7D, where you generate the url values that are fetched by GQI.

However, we could also embrace the power of GQI, by leveraging the custom operator. Then your data source can remain untouched, and it will just encode that one column that contains the link values, while querying the data.

I took the liberty to create an example of such a custom operator that should do the trick. Note that this operator will encode the entire column, so it should only contain the dynamic part of the url (not including the https://...).

What it will do

  1. From a query that results in a table with eg the column FilterValue...
    FilterValue

    value {1}
    value {2}

  2. ...it will, after applying the custom operator, result in...
    FilterValue

    value%20%7B1%7D

    value%20%7B2%7D

  3. ...which we could then use in the text shape of our Grid visualization:
    <a href="https://myagent/dashboard/#/db/myDashboard.dmadb?filter={FilterValue}" target="_blank">filter</a>

Note: As an alternative, if it isn't a requirement to use dashboards, you could create the grid in a low-code app and trigger an action on click instead of using html in a text shape. That action will already properly encode the url for you when opening the url.

Aldrick Gardiner [SLC] [DevOps Advocate] Posted new comment 6th July 2023
Aldrick Gardiner [SLC] [DevOps Advocate] commented 6th July 2023

Thank you!! This helped so much

You are viewing 1 out of 1 answers, click here to view all answers.
Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin