on 02-14-2011 7:34 PM
Hello All.....
I haven't got required solutions with the previous posts on this topic
I have an ALV table on that I am applying Read Only property on all the fields as per requirment I did this.
My another Requirment is I need to ENABLE or DISABLE a particular record based on one active flag comming back end. I created one attribute ENABLE in context of type WDY_BOOLEAN while populating data I am setting value for that attribute. I have one Button on the tool bar to trigger action.
The problem I am facing is I couldn't able to set DISABLE property to the ALV configuration model.
I used IF_SALV_WD_TABLE_SETTINGS~GET_ENABLED( abap_false ) but with this the entair table is becomming DISABLED but what I need is DISABLE/ENABLE for a particular row.
Thanks,
Venkat.
It is not working because you are setting the wrong property. Go through this link at the end it is described how you can enable or disable entire row.
lr_input->set_enabled_fieldname( value = 'enabled' ).
[http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynproforABAP|http://wiki.sdn.sap.com/wiki/display/WDABAP/HowtoeditconditionallyrowofaALVtableinWebDynproforABAP]
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Bhaskeran,
Thank you very much for your inputs, I got a solution with your approach below code worked for me
LOOP AT lv_columns INTO ls_column.
lr_column = ls_column-r_column.
CREATE OBJECT lr_input
EXPORTING
value_fieldname = ls_column-id.
CALL METHOD lr_column->set_cell_editor
EXPORTING
value = lr_input.
lr_input->set_read_only_fieldname( value = 'READ_ONLY' ).
lr_input->set_enabled_fieldname( value = 'ENABLE' ).
ENDLOOP.
User | Count |
---|---|
77 | |
9 | |
9 | |
7 | |
6 | |
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.