on 09-08-2007 11:19 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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
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
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
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.