cancel
Showing results for 
Search instead for 
Did you mean: 

Reg: Disabling edit for check box

Former Member
0 Kudos

Hi,

I have a checkbox group, In the initial stage the user should not be able to check it means it should be read only and on some action the user should be able to check them..

How can i do this.

Regards,

Prasanthi.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

try the below process

take one boolean attribute and bind with the checkboxgroup element's enable property.

and initially set it to false.

when required set it to true.

Regards,

ramesh

Answers (2)

Answers (2)

Former Member
0 Kudos

Its giving null pointer exception

Former Member
0 Kudos

Hi,

Where have you created the attribute binded to the enabled property of checkbox group. Try to create it directly under the Main Context node because currently you might have created it under some node whose object has not been instantiated.

Regards,

Murtuza

Former Member
0 Kudos

Hi,

where you created the boolean attribute ?

if you created it under the node which populating the checkboxgroup.

then you have to set it as false when you populating the checkboxgroup.

if you trying to make all checkboxes disable and enable ,take the boolean attribute outside to it ie root context.

Regards,

ramesh

Former Member
0 Kudos

Its giving null pointer exception

Former Member
0 Kudos

Hi,

Just go through the following tutorial, step by step procedure is explained in it

http://www.saptechnical.com/Tutorials/WebDynproJava/EnableHide/page1.html

In the above website just navigate to Tutorials>WebDynproJava>Enable/Disable & Show/Hide UI Elements in Web Dynpro Java

Regards

Raghu