Forum Discussion
jprmsn
5 years agoFrequent Visitor
Use expression for a property value in custom visual?
Is there any way for me to allow an expression to be used for a property value? ideally, this would be a singl text property that the user could set using a Dax expression, but I'm open to workaroun...
jprdynamicapps
5 years agoHelper IV
Thanks, Daniel.
I can confirm that all anyone needs to do to support a formula for a color, text, icon, or web URL property is to
- update to API at least 3.5
- add an the import of VisualEnumerationInstanceKinds
- add "propertyInstanceKind: {yourPropertyName: VisualEnumerationInstanceKinds.ConstantOrRule}" to enumerateObjectInstances.
Huge thanks also for the pending reincarnation of the HTML visual!
John