cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dynamic Conditional formatting is not working

Former Member
0 Likes
2,065

I am using lumira designer and lumira discovery for data visualisation,

I have a KPI that I want to set its color formatting dynamically ( from user ) so I am using Conditional formatting table and pop it up for the user using this line of code :

CHART_5.setConditionalFormattingVisible(true);
but when it pops up to the user , added rules are not applied to the text!! and not saved.
I want to know also how to set the table for a certain datastore, because it shows all the measures and dimensions of all the charts I have been using.

thanks.

Accepted Solutions (1)

Accepted Solutions (1)

MustafaBensan
SAP Champion
SAP Champion
0 Likes

In order to apply the Conditional Format Settings dialogue to a chart at run-time you need to include the chart as a parameter, as shown below:

CONDITIONAL_FORMATTING_SETTINGS.openRulesDialog(CHART_5);
Former Member
0 Likes

great, thank you!

Answers (1)

Answers (1)

MustafaBensan
SAP Champion
SAP Champion
0 Likes

Ayah,

It seems you are activating conditional formatting on a chart (CHART_5) but in the dialogue you are setting formatting for text which is applicable to a Crosstab and not a Chart.

Can you confirm exactly which component you are trying to activate the conditional formatting for?

For a Chart you need to select the Fill colour in the dialogue and not the text colour.

Regards,

Mustafa.

Former Member
0 Likes

I am using the formatting for the KPI Chart of Lumira Discovery.
As shown in the attached image, I want to format my numeric value ( Measure -> Average ),
isn't it possible for a KPI Chart?

MustafaBensan
SAP Champion
SAP Champion
0 Likes

I don’t see the attached KPI chart image.

Former Member
0 Likes

Why fill? I want the numeric value only to be formatted , when I use the conditional formatting table on discovery or designer it works correctly,
but when it is done dynamically it doesn't.