on 01-23-2012 7:27 AM
Hi all,
I am new webdynpro abap application. I have created a table ( Not ALV table ) with 5 editable rows.
In this I want 2 row 4 field should be in read_only property and in 3 row the same field i.e 4 field should be in edit mode.
How can it be possible. Please send me your replies. It is valuable for me.
Example:- read_only property or any other method
O O O O O
O O O X O
O O O O O
O O O O O
O O O O O
thanks & regards,
Chandra sekhar.
HI,
Try this approach:
1) In the node which you are binding to the table create one more attribute as "Variant" type char1.
2) In your table column,create 2 cell variants. Right click on first cell variant and insert a input field.Give the variant KEY as 'INPUT'.
3) Right click on second cell variant and insert a textview.Give the variant KEY as "TEXT".
4) Bind both input field and text view to your attribute in the node.
5) bind the new attribute i.e."VARIANT" to the "selectcellvariant " property of the your table column.
6) now in the code based on the condition populate VARIANT as INPUT if you need input field and TEXT if you need text view.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can use cell variant for your requirement, below link will help you:
http://wiki.sdn.sap.com/wiki/display/WDABAP/WebDynproforABAPCellVariants
Regards,
Amit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
u can use cell variant for that particular column.
Regards,
Sahai.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
you have to use wdy_boolean attribute and bind it to corresponding column attribute (read_only property ).
While binding table ( add one more column for boolean attribute ).
.., in that try like this.
if it is second row
then set the boolean attribute to abap_false
hope u understand the logic.
Regards
Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
76 | |
9 | |
8 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.