cancel
Showing results for 
Search instead for 
Did you mean: 

Check box Activation

Former Member
0 Kudos

Hiii

Iam creating an application in web dynpro.In that i want to active my "check box". For that we need to write the code.If thats the case.....

Please provide the code.

My screen will appear like this

User login id *:

Existing user : (Check box)

User name *:

Employee : (drop down by key)

Active : (check box)

Role * :(drop down by key)

Moreover i want these asteriks(*) like mandatory items in red colour.Is it possible in web dynpro.

Please tell me how we can do that.

Thanks in advance.

Regards

Sushma

Accepted Solutions (0)

Answers (6)

Answers (6)

Former Member
0 Kudos

thanks

Former Member
0 Kudos

Hi Sushma,

For checkBox Please follow the below steps:

1. Add the check box UI Elements.

2. Now create the context of type Boolean.

3. Add the boolean type context to the checked property

4. Add the Text which you want to show for this checkbox in text property.

5. you can define your method on ontoggle property.And you can write what ever logic you want in that method. like hidding or showing some UI elements etc.

please revert if you require more information

Regards

Narendra

Former Member
0 Kudos

Hi,

Create a checkbox UI Element for the view. Now as I get you need it to be ticked by default.

For this, open the Properties for checkbox, there will be a property 'checked', set it to true

Kind Regards,

Nitin

Former Member
0 Kudos

Hi,

to be more precise.

You need to set the State property of your input field to required and for Lable you need to set the Label for property to the Id of that input field

Regards

Narendra

Former Member
0 Kudos

Hi Sushma,

For (*) in red color, you can select the "required" property of the label = true.

For check box you can refer the page number 52 of the following article:

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b06c8c9a-19a4-2b10-d985-9ae7a438...

Hope it will help you.

Reards.

Rajat

Former Member
0 Kudos

Hi For * in red color . You need to define the Lable for for the input field in which you need to specify the Label name. Then make it required= true. It will show the star mark in red color.

For check box we do not need to write the code. just create the element and define its properties.

Hope this will help. If require more information i can help you.

Regards

Narendra