cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic changing color of labels/fields?

Former Member
0 Kudos

Change labels/fields dynamicly

For our applications we want to dynamicly change or labels and/or our fields. Depending a value that we read from ABAP, the idea is to change the color of a label/fields so that user can see what's going on, without using the tooltip.

2 simple questions:

1. Is this possible?

2. If yes, how and if no, are there any other sugestions?

Thanks in advance,

Hilco Joling

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

You can change the color of the fields but it's only available for Text View right now.

Create a contaxt attribute from Dictionay Simple type of type TextViewSementicColour.

Bind it with the Sementic colour property of the Text View and set the value based on your condition

like this

wdContext.currentContextElement().setColor(WDTextViewSemanticColor.POSITIVE);

You can set different colours available under WDTextViewSemanticColor.

Regards

Ravindra

Former Member
0 Kudos

Thanks Ravindra,

Do you know if SAP is planning to make it available for other UI-elements (like labels)? And, if so, when it will be available?

Regards,

Hilco Joling