cancel
Showing results for 
Search instead for 
Did you mean: 

Checkbox in Webdynpro

Former Member
0 Kudos

Hi,

I have created a checkbox in Webdynpro.

Now I want to assign a context to the check box which must of the type Boolean.

Can someone tell me where a boolean Context can be delared?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Supriya,

Create a value attribute and then right click on that context and select properties and then in the properties window select the type as boolen and then bind that context to the property of Checkbox that you want.

Regards,

Murtuza

Former Member
0 Kudos

Hi Murtuza ,

I am unable to see boolean option.

I am creating the context under the Component Controller.

Is that alright?

Former Member
0 Kudos

Hi Supriya,

Yes even in component controller you should get the option of boolean as type. Just scroll to the top of the drop down as it is always present there.

Still if you don't find there then select the type from java dictionary....

1. Select the last(browse ...) button in the type property of context.

2. A window will pop up. Select java native type.

3. Click on browse

4. A new window will pop up write there boolean in the first input field.

5.Select OK

6. Select OK

Now try to bind this context to your UI element.

Sorry this would give you Boolean and not boolean and thus won't allow you to bind.

If you can't find that in the drop down then just try directly writing there <b>boolean</b> in the type property of context.

You should ideally get the type boolean there

Regards,

Murtuza

Message was edited by:

Murtuza Kharodawala

Former Member
0 Kudos

Hi Supriya,

If the above thing doesn't work then try doing this:

1. Select the browse(...) button in the type property of context.

2. Select Dictionary Simple type

3. Expand node com.sap.dictionary.predefined.objecttypes and select boolean object

4. Select OK

5. Now bind this context to your UI element.

This will allow you to bind it to your boolean property.

Regards,

Murtuza

Former Member
0 Kudos

Hi Murtuza ,

I not seeing that context in the Checked Property Context list.

What could be the problem?

Former Member
0 Kudos

I am not sure what your problem is, but...

UI element properties must be bound to context attributes/nodes of the <b>view </b>controller. That means you have to either create such a context attribute or map it to an existing one from a component or custom controller.

If you have created it say in the the component controller, you have to

- define a controller usage from view to component controller

- define the attribute by context mapping

Then it should also appear in the editor for binding UI element properties.

Armin

Former Member
0 Kudos

Hi Supriya,

Hi Supriya,

If the above thing doesn't work then try doing this:

1. Select the browse(...) button in the type property of context.

2. Select Dictionary Simple type

3. Expand node com.sap.dictionary.predefined.objecttypes and select boolean object

4. Select OK

5. Now bind this context to your UI element.

Hope you have defined binding between <b>controller and view</b>. Just follow the above steps and you will get the attribute.

This will allow you to bind it to your boolean property.

Regards,

Murtuza

Former Member
0 Kudos

Thanks a lot Murtuza .

Its working now.Thanks for the help.<b>:)</b>

Answers (0)