cancel
Showing results for 
Search instead for 
Did you mean: 

creating radio button and make it ennable

Former Member
0 Kudos

Hello All ,

Please help me out in creating radio button and make it ennable in web dynpro in java application .

If Possible please send the sample code as well.

Thanks

jyothi.

Accepted Solutions (1)

Accepted Solutions (1)

junwu
Active Contributor

please use search and basic thinking....

Former Member
0 Kudos

Yes i did it.

In the following way i did

1. Create a simpleType.(DictionariesLocal dictonarysimpleTypes)

2. Go to enumeration , and add the data.

3. Create a context and in the property of the context , choose select and select the local dictionary and select the one which you have created.

4. You can create a RadioButtonKey and map to the context.

but it is not enabled. In properties ennabled-true, readonly -false but it is not enabled.

junwu
Active Contributor
0 Kudos

practice is important, but please do enough reading and get the basic principle of web dynpro understood before doing the exercise.

Former Member
0 Kudos

sure Thankyou.

Former Member
0 Kudos

Hi Venkat,

Is your radio button enabled now? If not, try the following way:

1. Create a context node (say, RadioButtonValues) of cardinality 1:1

2. Create a context attribute (say, RadBtnVal) under the node "RadioButtonValues"

3. Change the data type of context attribute 'RadBtnVal' to the the dictionary simple type you have created

4. Map the context attribute 'RadBtnVal' to "selectedKey" property of RadioButtonGroupByKey UI element

Regards,

Pavithra

Former Member
0 Kudos

Hi Pavithra,

Thankyou so much. They are enabled but for radio button one must be default. For EX: MALE and FEMALE are radio buttons one must be defaultly selected. But for my application no radiobutton is selected defaultly. Please help me out.

Thanks,

jyohti.

junwu
Active Contributor
0 Kudos

in wddoinit, you can set the initial value for the context attribute, then your radio button will have default value.

Former Member
0 Kudos

Hi Venkat,

The default value needs to be set manually as John has suggested. To be more precise, if the context node is "RadioButtonValues" and the context attribute is 'RadioBtnVal', then in wdDoInit() method, include the following:

wdContext.currentRadioButtonValuesElement.setRadioBtnVal("Male");

Regards,

Pavithra

Former Member
0 Kudos

Hi Pavitra,

Radio Button issue was solved. Can you please help me for DropDown Please.

Thanks

Jyothi.

Former Member
0 Kudos

Thank you.

Former Member
0 Kudos

Hi Jyothi,

The solution for enabling DropDownByKey UI element is already mentioned in the forum thread:

[;

What other issue are you facing apart from this?

Regards,

Pavithra

Former Member
0 Kudos

Hi Pavithra,

Thanku so much. Issue resolved.

Thanks,

jyothi.

Answers (0)