cancel
Showing results for 
Search instead for 
Did you mean: 

Web Dynpro -Make a cell in a table to read only based on a condition

Former Member
0 Kudos
249

Hi Experts,

We a have requirment to make a cell read only based on a condition in a webdynpro application.

For example: Consider a table having 2 columns Name and number.

if in the name column if the name is 'Requestor' and in the number column if the number is '5678', We need to make the number column as read only.

Early response will be really appreciated.

Thanks,

RK

Accepted Solutions (1)

Accepted Solutions (1)

gill367
Active Contributor
0 Kudos

HI

you can achieve it by adding one more attribute to the node used as the data source for the table.

add this attribute say

name - 'READ_PRO'

type - wdy_boolean

when you are filling the node by binding it to one internal table using the bind_table( ) method.

loop on this table and check for the value of name and number and then make the correspodning value of the attribute

equal to true or false as per the requirement.

now bind the read only porperty of cell editor of the column for which you want to control the read only property.

this will do the required

thanks

sarbjeet singh

Answers (1)

Answers (1)

Madhu2004
Active Contributor
0 Kudos

HI Ravi,

This can be acheived in 2 ways:

1) bind the read only property to the column using an additional attribute in the node used for the table data

2) Use the cell variant concept and put input field and text view in the same column. Based on the condition bind the necessary varint.

Regards,

MAdhu