cancel
Showing results for 
Search instead for 
Did you mean: 

How to disable certain cells of the table.

Former Member
0 Kudos

Hi all,

i have a table in my WD View.

i want to disable certain cells of the table on runtime.

how do i do that.

please replly soon.

Thanks & Regards,

tao wang.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

if you 're talking about hiding columns:

You can create in your context some attributes for the columns you want to handle.

eg layout_node with attributes col1, col2, col3

all attributes of type wdy_boolean

when you bind this attribute to the visible attribute of the corresponding column

setting the attribute to abap_true enables it, abap_false will hide the column

if it is setting read-only:

do the same thing but bind the attributes to the read-only attribute of the celleditor

true/false will now be inversed.

the entire column will become readonly or not.

if its for setting seperate cells:

you should add the attributes col1... to the datanode and bind them to the celleditors

read-only attribute

grtz,

Koen

Former Member
0 Kudos

Hi Koen,

Thanks a lot for your help in advance!

i need the specified cell(2,4) and the specified cell(2,5) is readonly and other cells is not readonly.

how do i do that.

please replly soon.

Thanks & Regards,

tao wang.

Former Member
0 Kudos

Hi Koen,

Thanks a lot for your help in advance!

I get your way and I can sovle the problem using your way. thanks a lot !!

Thanks & Regards,

tao wang.

Answers (0)