cancel
Showing results for 
Search instead for 
Did you mean: 

Change InputField font or Background Color

Former Member
0 Kudos

Hi,

Is there any way to change InputField font or Background Color? And how InputField can be disabled (Non editable) during runtime?

Regards,

Vaibhav

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You can bind the enable property to a context of type boolean so that you can change the value at runtime so that you can enable and disable the UIElements.

Ex: wdContext.currentContextElement().setEnabled(true);

or wdContext.currentContextElement().setEnabled(false);

I think you check portal Themes for changing the background colors.

Regards, Anilkumar

Former Member
0 Kudos

Any suggestions for changing font color or background of InputField???

Former Member
0 Kudos

Hi Vaibhav,

Just search for "Themes" in forums and Blogs, you will get some results !!!

Regards, Anilkumar

Former Member
0 Kudos

I recommend against using the "enabled" property for setting the read-only state, better use the "readOnly" property.

Armin

Former Member
0 Kudos

Hi All,

Please give an example of theme applying to Web Dynpro application where we will be able to <b>change Input filed background color or font color</b>.

Thanks in advance,

Vaibhav.

Former Member
0 Kudos

Thanks for your suggestions, but themeeditor-plugin link is not working

https://www.sdn.sap.com/sdn/downloaditem.sdn?res=/html/themeeditor_download.htm

Former Member
0 Kudos

Could you pl report this to SDN team...sdn@sap.com

Regards, Anilkumar

Former Member
0 Kudos

Hi,

if you still have no answer, you can use javascript function to change the background color of element.

first find this element by ID, and then apply new style.

Regards,

Lukasz

Answers (1)

Answers (1)

Former Member
0 Kudos

Font is defined by theme, there's no API to change it.

For setting field to read-only, bind property "readOnly" to boolean context attribute and set attribute value = true.

Armin