cancel
Showing results for 
Search instead for 
Did you mean: 

cl_wd_table - enable/disable certain cells

uwe_isenmann2
Participant
0 Kudos

Hello together,

I'm looking for a good solution to enable/disable certain cells in a table.

For example I have the following table (the real table is more complex - with buttons and so on...):

UserToDoState
ATodo1Done
BTodo2In Process
ATodo3In Process
BTodo4Done

I have different users which are working on this tabe:

- Administrator: Can edit whole table (except State column)

- Employee: Can only edit State Column where he is assigned

I think it would be difficult to work with context attributs in this case?

Is it possible to Loop over all table lines an set "enabled" Attribut in the coding?

Best Regards

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos
ramakrishnappa
Active Contributor
0 Kudos

Hi,

All you need to have the information of the columns to which the user is permitted to edit data.

Based on this, you can look for the particular column name and set the read only property dynamically.

You can refer the below document, in this document I have explained how to lock/unlock cells dynamically

Hope this helps you.

Regards,

Rama

former_member184578
Active Contributor
0 Kudos

Hi,

Yes. It's possible. Check this document for reference:

In this, I have demonstrated to enable a cell on Leadselection. You can do based on condition by looping over the internal table.

Hope this helps,

Regards,

Kiran