Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

278
Visualizações
powerbi-client-react - Property 'getPages' does not exist on type 'Embed'

I am using powerbi-client-react in a typescript project. I wanna use the report instance to read out the from/to values of a date-slicer on an active page. the problem is, when I am setting the getEmbeddedComponent attribute on my PowerBIEmbed component, then the handed report has not all methods that are listed in the powerbi javascript api docu. For example I need report.getPages() to access the slicer states but the method is not found on the report instance, which is of type embed.

Thx for any kind of help

            getEmbeddedComponent={(embeddedReport) => {
              const pages = embeddedReport.getPages();
            }}
about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

For React wrapper, getEmbeddedComponent returns Embed object, which does not have the getPages() function on it.

If you want to use getPages(), then please typecast the Embed object as Report.

The following code snippet will work:

getEmbeddedComponent = {(embedObject: Embed) => {
    const pages = (embedObject as Report).getPages();
}};

Reference: https://docs.microsoft.com/rest/api/power-bi/reports/get-pages

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda