Note that there are some explanatory texts on larger screens.

plurals
  1. PORadiobuttonField Super with Label, Value and Group
    primarykey
    data
    text
    <p>I'm new to Java and Blackberry and i'm stuck with a registration screen, due to the fallowing:</p> <p>I have a registration screen, where i show 2 radiobuttons, male and female. Only these 'labels' are not for me to write, it's a value and a tag that i request to a webservice. What i needed was something like:</p> <pre><code>MyRadioButton rb1=(String label, String value, Group rbg); </code></pre> <p>and it's Super(label, value, group); ---this value more of an internal label ID, so to speak, a pk_id.---</p> <p>so i could, after, retrieve which Rbutton was selected and it's value, so i could send it back when i click the Register Button.</p> <p>I have an example of how to do it, but not for blackberry:</p> <pre><code>Gender[] gender = WebServCall.GetUserGender(); if (gender != null &amp;&amp; gender.length == 2) { holder.radiob1.setText(gender[0].genderType); holder.radiob1.setTag(gender[0].PK_ID); holder.radiob2.setText(gender[1].genderType); holder.radiob2.setTag(gender[1].PK_ID); } else { //alert } } static class ViewHolder { RadioButton radiob1; RadioButton radiob2; } </code></pre> <p>(...)</p> <p>//Get the inserted information, by the user</p> <p>... RadioButton register_buffer_Gender1 = (RadioButton) findViewById(R.id.radiob1); RadioButton register_buffer_Gender2 = (RadioButton) findViewById(R.id.radiob2);</p> <p>... boolean check1 = register_buffer_Gender1.isChecked(); boolean check2 = register_buffer_Gender2.isChecked();</p> <p>....</p> <p>Could you give and example of how to do this, but for blackberry?</p> <p>Thank you</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload