cancel
Showing results for 
Search instead for 
Did you mean: 

Background color for table column with readonly property

Yogitha
Employee
Employee
0 Kudos

Hi,

In my application, I have a table for which I have to display background color as yellow for few fields. Based on certain condition the fields are editable else they are made read-only.

I have used Input control for these fields. Problem is that when the fields are made read-only the yellow background is not displayed.

Is there any possibility of displaying yellow background when the fields are made read-only also?

Regards,

Yogitha

Accepted Solutions (0)

Answers (2)

Answers (2)

Yogitha
Employee
Employee
0 Kudos

Hi Arjun,

Thanks for the reply.

Only at runtime I will know whether the field is read-only or editable. So I have used Input field and at runtime set the readonly property.

When read-only is not set for input field, yellow background appear.

When read-only is set, yellow background doesn't appear.

In the example quoted above, textview is used and yellow background is visible.

Since in my application I know only at runtime whether the field is editable or not, I couldn't use TextView.

Regards,

Yogitha

pranav_nagpal2
Contributor
0 Kudos

Hi Yogitha,

Refer this article

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f0625002-596c-2b10-46af-91cb31b7...

this is for ALV but same is possible for Table as well, you can proceed in same way......

regards

Pranav

arjun_thakur
Active Contributor
0 Kudos

Hi Yogitha,

According to my knowledge, I don't think it is possible to change the background color of a read only input field. May be Thomas Jung or other mentors can suggest us something.

Regards

Arjun

arjun_thakur
Active Contributor
0 Kudos

Hi Yogitha,

Check this standard component : wdr_test_table. Look SNGL_MARK_CELL view, it explains the case just like yours.

I hope it helps.

Regards

Arjun