on 06-11-2014 11:09 PM
Hi,
I have changed one WD application and I have added one table(Layout data: Matrix head data),
in which I made one column as editable"Bind to property of the selected attribute-Enabled". My requirement
is to make for one particular row - make that column non-editable.
Please let me know if anyone come across this kind of requirement?
I wrote a code in method for the element(table): WDDOMODIFYVIEW
* lo_el_nd_partner = lo_nd_nd_partner->get_element( index = sy-tabix ).
*
* lo_el_nd_partner->set_attribute_property(
* attribute_name = 'GPARN'
* property = 3 "Property 3 for read-only
* value = 'X'). "Disable vendor number editing for VN row
But still it is editable.
Best regards,
Anilkumar.
Hi Anil,
Refer below document which will help you.
How to make table cells as editable / non-editable dynamically in Web Dynpro ABAP
Dynamically make cell readonly in table web dynpro
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Anil,
As you are having a context attribute ZGPARN_READONLY to make the columne GPARN as read only based on the value inside the table.
You just need to bind the READONLY property of GPARN to context attribute ZGPARN_READONLY as below
Now, if you pass value X to attribute, then the particular cell will be made as read only
"Read table data from context node into lt_nd_parnter.
loop at lt_nd_partner assigning <ls_partner> where parvw = 'VN'.
<ls_partner>-ZGPARN_READONLY = abap_true.
endloop.
" bind the table to context node
lo_node->bind_table( new_items = lt_nd_partner ).
Hope this helps you.
Regards,
Rama
User | Count |
---|---|
86 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.