Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
To do my cuom visuals, I enter some object properties in capabilities.json in this way:
"objects": {
"ggsettings": {
"displayName": "Chart Settings",
"description": "Chart settings",
"properties": {
"Smoothing": {
"displayName": "Smoothing",
"description": "Add smoothing",
"type": {
"bool": true
}
},
I have seen some examples with a displayNameKey field:
"objects": {
"ggsettings": {
"displayName": "Chart Settings",
"description": "Chart settings",
"properties": {
"Smoothing": {
"displayName": "Smoothing",
"displayNameKey": "XXXXXXXXXXX"
"description": "Add smoothing",
"type": {
"bool": true
}
},
What is the role of this field?
displayNameKey (as well as descriptionKey and placeholderTextKey) is used to define a lookup value for localisation within visuals.
Note that if building this in, you need to package your visual to test that lookups work correctly, as stringResources/localisation keys are not supplied to the developer visual when debugging.
Proud to be a Super User!
On how to ask a technical question, if you really want an answer (courtesy of SQLBI)