Skip to main content
Solved

Embedd Dashboards in iFrames without ODS header

  • July 3, 2024
  • 2 replies
  • 66 views
  • Translate

Johannes Hool

Hey there

When we want to embed a table in an iframe we have the /embed/ endpoint that we can use to hide the ODS header when displaying the dataset. Here is an example:

Table with header:
https://data.bl.ch/explore/dataset/12060/table/?disjunctive.jahr&disjunctive.gemeinde&disjunctive.kategorie&disjunctive.einheit

Table without header
https://data.bl.ch/explore/embed/dataset/12060/table/?disjunctive.jahr&disjunctive.gemeinde&disjunctive.kategorie&disjunctive.einheit

We are currently trying to embed a dashboard created with the studio in an iframe. However, we can’t get rid of the header. Example:

Dashboard with header:
https://data.bl.ch/p/wahlen_nr_sr/

Dashboard without header:

?

 

Is there a possibility to achieve this? If yes, how?

 

Many thanks for your help

Auto-translation đŸȘ„

Salut. Lorsque nous voulons intĂ©grer une table dans une iframe, nous avons le point de terminaison /embed/ que nous pouvons utiliser pour masquer l'en-tĂȘte ODS lors de l'affichage de l'ensemble de donnĂ©es. Voici un exemple :Tableau avec en-tĂȘte :https://data.bl.ch/explore/dataset/12060/table/?disjunctive.jahr&disjunctive.gemeinde&disjunctive.kategorie&disjunctive.einheitTableau sans en-tĂȘtehttps://data.bl.ch/explore/ embed/dataset/12060/table/?disjunctive.jahr&disjunctive.gemeinde&disjunctive.kategorie&disjunctive.einheitNous essayons actuellement d'embarquer un tableau de bord créé avec le studio dans une iframe. Cependant, nous ne pouvons pas nous dĂ©barrasser de l’en-tĂȘte. Exemple : Tableau de bord avec en-tĂȘte :https://data.bl.ch/p/wahlen_nr_sr/Tableau de bord sans en-tĂȘte :? Y a-t-il une possibilitĂ© d'y parvenir ? Si oui, comment ? Merci beaucoup pour votre aide

Best answer by Anonymous

Hello Johannes, 

You can use the parameter “headless=true” in the URL, for example https://data.bl.ch/p/wahlen_nr_sr/?headless=true

Hope it helps ! 

Auto-translation đŸȘ„

Bonjour Johannes, Vous pouvez utiliser le paramĂštre « headless=true » dans l'URL, par exemple https://data.bl.ch/p/wahlen_nr_sr/?headless=trueJ'espĂšre que ça aide ! 
View original

  • July 4, 2024

Hello Johannes, 

You can use the parameter “headless=true” in the URL, for example https://data.bl.ch/p/wahlen_nr_sr/?headless=true

Hope it helps ! 

Auto-translation đŸȘ„

Bonjour Johannes, Vous pouvez utiliser le paramĂštre « headless=true » dans l'URL, par exemple https://data.bl.ch/p/wahlen_nr_sr/?headless=trueJ'espĂšre que ça aide ! 
Translate

Johannes Hool

Hi Carole

You guys are the best. :-)

Thank you very much!

Auto-translation đŸȘ„

Salut Carole, vous ĂȘtes les meilleurs. :-)Merci beaucoup!
Translate

Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings