Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
lucmax
Helper II
Helper II

supportsHighlight not working after packaging visual

Hi,

 

we've developed a custom visual which uses the matrix data view mapping and now want to add highlight support to it. Everything works fine while we work with the developer mode (pbiviz start), but if we package the visual and try filtering the data, using the highlight mode, the visual stops working. It looks like the update method will not get called, we only get the loading indicator in the top left but nothing else happens. The breakpoints we set in the update methods won't get reached.

 

We are using version 3.1.15 of pbiviz and this is how the mapping in our capabilities.json looks like:

 

    "dataViewMappings": [
        {
            "conditions": [...],
            "matrix": {
                "rows": {
                    "for": { "in": "A"}
                },
                "columns": {
                    "for": { "in": ""}
                },
                "values": {
                    "select": [
                        {
                            "for": { "in": "B"}
                        },
                        {
                            "for": { "in": "C"}
                        },
                        {
                            "for": { "in": "D"}
                        },
                        {
                            "for": { "in": "E"}
                        },
                        {
                            "for": { "in": "F"}
                        },
                        {
                            "for": { "in": "G"}
                        }
                    ]
                }
            }
        }
    ],
    "subtotals": {
        "matrix": {
            "rowSubtotals": {
                "propertyIdentifier": {
                    "objectName": "subTotals",
                    "propertyName": "rowSubtotals"
                },
                "defaultValue": true
            },
            "rowSubtotalsPerLevel": {
                "propertyIdentifier": {
                    "objectName": "subTotals",
                    "propertyName": "perRowLevel"
                },
                "defaultValue": false
            },
            "columnSubtotals": {
                "propertyIdentifier": {
                    "objectName": "subTotals",
                    "propertyName": "columnSubtotals"
                },
                "defaultValue": true
            },
            "columnSubtotalsPerLevel": {
                "propertyIdentifier": {
                    "objectName": "subTotals",
                    "propertyName": "perColumnLevel"
                },
                "defaultValue": false
            },
            "levelSubtotalEnabled": {
                "propertyIdentifier": {
                    "objectName": "subTotals",
                    "propertyName": "levelSubtotalEnabled"
                },
                "defaultValue": true
            }
        }
    },
    "supportsHighlight": true

 

Are there any known issues, or are we missing something?

 

Regards,

Lucmax

4 REPLIES 4
dm-p
Super User
Super User

I'd say that if the constructor is okay and it works in the dev visual, but not when packaged, then it might be something in the packaging process (or the visual host when not in dev mode), and therefore potentially an issue outside of your control. Have you tried flagging with the visuals team? If not, I'd flick them an email - pbicvsupport@microsoft.com

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Yeah, i've send them an email and also opened a ticket on their github. I will post any updates for others to see on this post.

dm-p
Super User
Super User

Hi @lucmax

If update's not being called, it could be worth checking to see if the constructor's running to completion. Do you have any breakpoints in there that you can confirm?

Daniel





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


My course: Introduction to Developing Power BI Visuals


On how to ask a technical question, if you really want an answer (courtesy of SQLBI)




Hi @dm-p 

 

Unfortunately the constructor is called and completed normaly. The whole visual works pefectly fine until I select data in a different visual (in my case it is the stacked bar chart from microsoft) that's supposed to highlight the data in my visual. No reload of my visual is triggered, the only thing I see is the small loading indicator in the top left of my visual.

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.

Top Kudoed Authors