cancel
Showing results for 
Search instead for 
Did you mean: 

based on checkbox the inputfiled is editable/non-editable

Former Member
0 Kudos

Hi,

I am new to webdynpro abap,

How to make input field is editable/non-editable based on checkbox in alv .

Please suggest with suitable solution .

Thanks and Regards

Srinivas

Accepted Solutions (1)

Accepted Solutions (1)

former_member184958
Active Participant
0 Kudos

Hi,

create one node, in that node create one attribute with type Boolean with default value as false. Then bind this attribute to input field property read only then inside the check box action do the below,

read the check box, if check is not initial.

                               set the value true for that Boolean attribute as true.

                               endif.

I Hope you understand,

Regards,

John.

former_member217916
Participant
0 Kudos

Adding to to what John described above you can also bind the input field's ENABLED property to a attribute of a node. The type for this is WDY_BOOLEAN.

When you bind the input field to the ENABLED property it grey's out the input field and If you bind the input field's READ ONLY property it displays the input field as a Text View.

Regards,

Karan Ranawat

Former Member
0 Kudos

Hi John,

Thankyou very much for your help, its working fine..

Points have been awarded.

Regards

Srinivas

Answers (2)

Answers (2)

rabikiran_sahu
Participant
0 Kudos

Hi Srini,

Please let me know if you are able to solve this with the provided link and let me know if I can help you if not.

Thanks,

Rabi

rabikiran_sahu
Participant
0 Kudos

Hi Srinivas,

Please follow the below wiki link you will have good idea how to work on the requirement

http://wiki.sdn.sap.com/wiki/display/WDABAP/How+to+edit+conditionally+row+of+a+ALV+table+in+Web+Dynp...

Thanks,

Rabi