Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

276
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda