aequos-solutions / modern-data-visualizer

Documentation for the Modern Data Visualizer solution
https://aequos-solutions.github.io/modern-data-visualizer/
8 stars 7 forks source link

Is there a way to get querystring parameters in a template as in pnp modern search with getUrlParameter? #86

Open FLXNBC opened 1 year ago

FLXNBC commented 1 year ago

I would like to know if there is a way in Aequos to get querystring parameters in Handlebars template? There is an helper that exist on pnp modern search « getUrlParameter » but looks like it’s not working on Aequos.

Any thoughts?

Laul0 commented 1 year ago

Hi @FLXNBC,

Thank you for your question. It depends on the purpose of your use case. You can use the following:

Hoping these information will help you

FLXNBC commented 1 year ago

Thanks @Laul0 ! Perhaps, I'm missing something as the tokens seems to work only on the search query configuration and not on the handlebars template.

The @root.inputQueryText works well but only for one parameter, in our case we can have multiple parameters and won't work with the @root.inputQueryText except if we put everything in the same parameter with a separator.

Are you planning the add the helper "getUrlParameter", that exist on pnp modern search, to AEQUOS?

Laul0 commented 1 year ago

Hi @FLXNBC,

Thank you for your feedback. You can access all Handlebars Helpers + some additional are included in MDV.

We let you know that nothing has been planned yet. We added it to our backlog and the team will prioritize it. This issue will be closed automatically once the helper will be implemented in the solution.