Forum Discussion
Anonymous
9 years agoNot applicable
need to populate object value in format option as per user selection.
(using power bi custom visual in web version(latest)) I have defined an object of enumeration type in capabilities.json: "objects": { "MyObj": { "displayName": "Object type", "properties":...
- 9 years ago
Hello Anonymous,
As far as I understand, your case is to update formatting panel from TypeScript code. Is that correct?
If so, you should use persistProperties.
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals
Anonymous
8 years agoNot applicable
v-viig
Community Champion
8 years agoThe could will look something like this:
host.persistProperties({
merge: [{
objectName: "yourObjectName", // The same is specified in capabilities.json
properties: {
yourPropertyName: "Value",
yourPropertyName2: "Value2",
},
selector: null, // The selection is null in most of cases
}]
});
Ignat Vilesov,
Software Engineer
Microsoft Power BI Custom Visuals