Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

In Web dynpro cells dropdown box read only based on condition

Former Member
0 Likes
852

In webdypro we have a requirement we have a table   with three columns, the columns have drop down option, If we select first drop-down value to one cell, and remaining will be go to write mode otherwise we didn't give any value to first cell the remaining two cells should be in read only.

for example : ' COUNTRY' should be given as input field in first cell, Where as second cell as"STATES LIST" should be given as drop down and third cell as "REGIONS LIST" these should be in enable mode.

IF the first cell we didn't give any value the remaining cells should be in read only mode.  when ever we give first cell value than the remaining cells should be write mode.

How to put these in webdynpro. Please suggest me.

Thanks&Regards

Mahesh Reddy

In webdypro we have a requirement we have a table   with three columns, the columns have drop down option, If we select first drop-down value to one cell, and remaining will be go to write mode otherwise we didn't give any value to first cell the remaining two cells should be in read only.

for example : ' COUNTRY' should be given as input field in first cell, Where as second cell as"STATES LIST" should be given as drop down and third cell as "REGIONS LIST" these should be in enable mode.

IF the first cell we didn't give any value the remaining cells should be in read only mode.  when ever we give first cell value than the remaining cells should be write mode.

How to put these in webdynpro. Please suggest me.

Thanks&Regards

Mahesh Reddy

2 REPLIES 2
Read only

former_member219762
Contributor
0 Likes
595

Hi Mahesh,

                     From this link you would know how to create cell variant http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynpro+for+ABAP+Cell+Variants

First set 2nd and 3rd column as read only as above link

Assign action to drop down list of 1st column,In that action handler get the selected value, according to that value we can set drop down list values as above link.Repeat the same for 3rd coloum.

To know how get selected value http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c03227f9-e48f-2c10-4bad-8ebdec704...

Regards,

Sreenivas.


Read only

Former Member
0 Likes
595

Hi Mahesh,

If that is the requirement then, u can make use of visibility... wherein if the 1st drop down has value only then make the other one visible or else hide it.. This can be achieved easily.