cancel
Showing results for 
Search instead for 
Did you mean: 

How to use radi button

Former Member
0 Kudos

Hi,

Can any one tell me how to use radio button.

For example i want to use radio button to select gender, Female or male. How to put that.?

Regards,

H.V.Swathi

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Swathi,

Create a simple data type as gender and in that give names as Male and Female in the Enemuration section

In the contexr create a value node as Gender and a value attribure as GenderVal and bind the type of this attribute to the dictioanry data type which you created

Now create a UI element as RadioButton and binbd the context attribute created above.

Now you can see the Gender filed as Male and Female

Thanks&Regards

Padma N

Former Member
0 Kudos

i want to know how to use check box too.

Can u tell the procedure.

Regards,

H.V.Swathi

Former Member
Former Member
0 Kudos

what will be the texts property value in checkboxgroup UIElement.

Regards,

H.V.Swathi

Former Member
0 Kudos

bind the attribute of value node to it.

Former Member
0 Kudos

how can i give diferent value to more than one checkbox.

Former Member
0 Kudos

Hi,

to populate check box group the following code helpful,

context Structure is as follows

root

.

.Items

.SelectedText

.

// populate check box group

for (int i = 0; i < 3; ++i)

{

IItemsElement e = wdContext.nodeItems().createItemsElement();

wdContext.nodeItems().addElement(e);

e.setSelectedText("Item #" + i);

}

Regards,

ramesh

Edited by: Ramesh Babu V on Oct 29, 2008 4:27 PM

Answers (3)

Answers (3)

Former Member
0 Kudos

Search the forum and you will find the answer.

Armin

former_member205363
Contributor
0 Kudos

Hi,

Please follow this link to design good UI

https://www.sdn.sap.com/irj/sdn/nw-wdjava?rid=/library/uuid/0e617bc3-0401-0010-2c82-81f82e73300e

Regards,

Lakshmi Prasad.

Former Member
0 Kudos

Hi,

define a simpletype with enumeration values male and female.

create a attribute of this simple type and bind this to radiobuttongroupbykey ui element.

Regards,

ramesh