on 04-07-2011 8:38 AM
Hi Expert,
I have a requirement like this:-
Currently :-
One table has two column and it is displaying on screen.There is a ADD Button above that table. and the table has 2 rows with data.
Need:-
The first column should be disable with the 2 records only.As the user click on ADD Button the third is inserting but for this third row the first column should be enable.
How can i do that , because we can set disable property at column level and not on the number of record level.
please help.
Thanks
Mahesh
HI mahesh ,
make attribute with type wdy_boolean and bind it to the read only attribute of the field.
Now loop to itab into is .
readonly true or false as per ur req
endloop.
This will enable you to bind only the specific rows that you want.
It worked for me.
Regards
Kuldeep
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
THANKS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create table with first two records as read only.. use WDY_BOOLEAN attribute and bind it to read only of table coumns.
for example ENABLE type WDY_BOOLEAN.
When click on add button you want to add one row with enable fields right???
check this code to insert a row..
lo_nd_segment1->get_Static_attributes( importing static_attributes = ls_segment1 ).
*clear lo_el_test.
lo_el_segment1 = lo_nd_segment1->create_element( ).
lo_nd_segment1->bind_element( new_item = lo_el_segment1
set_initial_elements = abap_false ).
and set_attribute( value ENABLE = ABAP_TRUE ).
Cheers,
Kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Create One more attribute in the table context with type WDY_BOOLEAN. bind this new attribute to the corresponding enabled property.
Regards
Shaira
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.