Git Product home page Git Product logo

Comments (4)

Aj-Nunez avatar Aj-Nunez commented on August 11, 2024 1

@taarskog This is resolved! Steps I took to solve issue: created a new web resource the same as above and then added this to the conifg resource with the new URL and then to my dashboard. Not sure why this worked (maybe something with my machines cache?) but nonetheless it works as expected. This is a fantastic solution thank you @taarskog for your assistance

from crm-powerbi-viewer.

taarskog avatar taarskog commented on August 11, 2024

Can you share:

  1. The "Custom parameter (data)" from the dashboard web resource
  2. Your config-file

from crm-powerbi-viewer.

Aj-Nunez avatar Aj-Nunez commented on August 11, 2024

Sorry for the delayed response, I have tried a new script/method so that's why the method being called is different than what's provided above, but again still no luck. Debugger never reaches any breakpoint. I'm not sure what I'm missing because like I mentioned this has been a great resource and works awesome when adding reports to forms. Any insights to this is greatly appreciated. Thanks,

  1. Custom Parameter
    capture

type=report&id=037b4bec-280e-4bd6-8c68-aa6d86403024&pageName=&showFilterPane=true&showNavPane=false&customFn=filterDashboard

  1. `var customConfig = {
    ///////////////////////////////
    // ITEMS THAT MUST BE CHANGED
    ///////////////////////////////

    // See documentation on how to register the application in Azure AD and get a client id (remember to enclose with quotes - see sample).
    // Sample: auth_client_id: "12345678-1234-abcd-1234-11aabb22cc",
    auth_client_id: "5f4e71ee-0e40-4c27-899f-b0ac05032759",

    ///////////////////////////////////////////
    // CAN USUALLY BE LEFT UNCHANGED
    // (unless specified in the documentation)
    ///////////////////////////////////////////

    // How to perform authentication - valid values are "inline" or "popup". Default is "inline" (rember to enclose with quotes).
    // You should typically use "inline" on Dynamics 365 Online with users located in your Azure AD and "popup" when on-premise (might also be required if you have invited external parties to your Azure AD).
    auth_mode: null,

    // Auto-refresh access - may cause page reload if token cannot be updated silently [valid values are true or false]. Default is true.
    auto_refresh_token: null,

    // Where to cache tokens. Valid values are 'sessionStorage' and 'localStorage'. Default is 'sessionStorage'.
    auth_cache_location: null,

    // Logging of Adal authentication process [Valid values are 0-3] (0=ERROR, 1=WARNING, 2=INFO, 3=VERBOSE). Default is 0.
    auth_log_level: null,

    // Log level for Power BI Viewer [Valid values are 0-3] (0=ERROR, 1=WARNING, 2=INFO, 3=DEBUG). Default is 0.
    // (is not affected by and does not affect auth_log_level)
    log_level: null,

    // Array of custom scripts to load. Functions in these scripts can be referenced for report filtering etc.
    // Sample: custom_scripts: ["../../new_myfilter?ver=1", "../../demo_/powerbi/filters/account.js?ver=1"]
    custom_scripts: ["https://im360poc.crm.dynamics.com//WebResources/im360_opportunity_pbiFilter.js?ver=1", "https://im360poc.crm.dynamics.com//WebResources/im360_im360poc_quoteSection.js?ver=1", "https://im360poc.crm.dynamics.com//WebResources/im360_im360poc_accountsection.js?ver=1", "https://im360poc.crm.dynamics.com//WebResources/im360_dashboardTreeMap.js?ver=2"],
    };`

from crm-powerbi-viewer.

taarskog avatar taarskog commented on August 11, 2024

I've tested this now in my environment and it works with config as your screenshot and with treemap as visual. Can you also share your updated code so we can see the code corresponding to the config you posted above?

from crm-powerbi-viewer.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.