microsoft / microsoft/powerbi-visuals-api

Formatting pane - conditional formatting not showing property name

Open
#62 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
108
Forks
48
PR merge metrics
No merged PRs in 30d

Description

Using this code:

const slice: powerbi.visuals.FormattingSlice = { displayName: displayName, uid: uid, control: { type: powerbi.visuals.FormattingComponent.ColorPicker, properties: { descriptor: { objectName: object, propertyName: propertyName, selector: dataViewWildcard.createDataViewWildcardSelector(dataViewWildcard.DataViewWildcardMatchingOption.InstancesAndTotals), altConstantValueSelector: null, instanceKind: powerbi.VisualEnumerationInstanceKinds.ConstantOrRule }, value: { value: color }, } } };

A conditional formatting pop up is shown after pressing the Fx button, with the title:

'Undefined - ' followed by whatever 'object' is.

I am expecting the propertyName to be printed where 'undefined' is shown. This is how the previous version of the API worked as far as I know.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the FormattingSlice control descriptor from the supplied JavaScript example into the conditional-formatting popup that displays the title. Check how objectName and propertyName are resolved for the ColorPicker, then verify that the popup shows propertyName instead of “Undefined” before the object name.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
api, frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.