cancel
Showing results for 
Search instead for 
Did you mean: 

Label and RadioButtonGroupByKey not possible?

Former Member
0 Kudos

Hi,

it seems to me, that it is not possible to Ilink a label to a RadioButtonGroupByKey? Is this true? Possible work-around (I want a "required"-symbol)?

KR

Felix

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This UI has a property state, set a value as required.

If you need it dynamic then bind a attribute to that and assign value as.

CL_WD_RADIOBUTTON_GROUP_BY_KEY=>E_STATE-REQUIRED

Former Member
0 Kudos

I know, but if I cannot bind a label to it, it cannot be appear as required....

Former Member
0 Kudos

I do not understand why you need a label to bind the state property. Have you actually tried this and properly assigned the selectedKey value set. Texts from this value set (selected key ) are function as Label here.

Former Member
0 Kudos

I want to bind a label to the radiobuttongroupbykey. Each box has a label, but I want a label that explains the radiobuttongroup in a whole.

This label would appear as mandatory if the state of the radiobutton is "required". The problem is: i cannot bind a label to a radiobuttongroupbykey.

Edited by: Felix F. on Nov 4, 2011 3:23 PM

Edited by: Felix F. on Nov 4, 2011 3:24 PM

Former Member
0 Kudos

i understand what you try to achieve, it is not designed that way to function.

Former Member
0 Kudos

All right. How is the a radiobuttongroup usually marked as mandatory then? I assume this is often necessary, so there must be a solution. Or is there really none?

Former Member
0 Kudos

Please see my first post.

This UI has a property state, set a the as required for static scenario.

If you need it dynamic then bind a attribute to that and assign value as.

CL_WD_RADIOBUTTON_GROUP_BY_KEY=>E_STATE-REQUIRED.

Former Member
0 Kudos

sorry for making it not clear enough. I know about the state attribute. But this attribute does not seem to have any visual effect on the radioButtonGroup. An inputField with state "required" is marked with a star in the corresponding label (as usual). How can I mark the radioButtonGroup?

Edited by: Felix F. on Nov 4, 2011 4:27 PM

Former Member
0 Kudos

I understand it now and i am able to simulate Your problem.

Solution is to create a UI Element LABEL and set the property Labelfor . You have to supply the ID of the RadioButtonGroupByKey UI element.

It is working for me.

Former Member
0 Kudos

Well, thats bad. This was what I tried to do, but it is not working for me. The radiobuttongroupbykey is not in the dropdown list for the property labelfor. And when I enter the id manually it is not accepted. It is really working in your case?

former_member199125
Active Contributor
0 Kudos

Ha ha, nice discussion..

Felix,

why dont you create a image element , place the image beside radiobuttongroupbykey element. Make sure image would be appropriate and small size, so that it wil be good for look and feel , not for functionality. For functionality you should use state property.

Regards

Srinivas

Answers (0)