How to define two RadioButton fields is close horizontally

I need to display the option male and female for my application buttons.

When I tried to keep the buttons as horizontally aligning it as expected, it shows just a field of only option button.

Does he know to align horizontally near the radio buttons.

Thanks in advance,

Stéphane

Visit this link:

http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=14266#M14266

Tags: BlackBerry Developers

Similar Questions

  • How to fill two text fields based on a simple drop down list

    I'm trying to set up a form so that the two text fields will fill with a text by default (separate for each text field) at the same time.

    Here is a screenshot of the fields.

    Thus, for example, if I select Utah in the drop-down list in 'State', ' OH Fund Center "is automatically filled in with APWSWR4949 and"OH WBS"is automatically filled in with WR49.73.0003.

    I have a similar script for down text in form fields, but the script does not work.  I tried the following script:

    var v1 = this.getField("RecState").valueAsString;

    If (v1 == "Utah") event.value = APWSWR4949;

    else event.value = "";

    However, it would not AutoFill OH Fund Center area.  And I have no idea how complete both fields at the same time.

    Any help would be greatly appreciated.

    Thank you!

    Crystal

    Strings must be enclosed in quotation marks. So change your code:

    var v1 = this.getField("RecState").valueAsString;
    if (v1=="Utah") event.value = "APWSWR4949";
    else event.value = "";
    

    If it works, then you can use code similar to your other field.

  • How to merge two form fields?

    For example 2 text fields that are on the end of page 1 and at the beginning of page 2?

    No, form fields can only be rectangular.

  • How can I define two different emails in one form of contact?

    How can I define two different emails in one form of contact?

    To enter several e-mail address with Contact form Widgets:

    1. Click on the Options icon for the selected widget, then
    2. In the Email box, enter several emails in delimiting them with a semicolon. For example:
      [email protected];[email protected]
      

    CARI

  • How to divide the two numeric fields?

    Hello.

    I tried to divide two numeric fields, called A and B and put the result in a hidden field called C. I need the value for an XML export.

    My question is; How is it possible to divide A and B? I don't have a problem in multipling other areas, but trying to divide I get at most / overflow error.

    Best regards

    Mathias

    Hello

    During the distribution, please check that the value of the field as the line is not null or zero first. So the event calculate the hidden field would look something like this:

    if (b.rawValue == null || b.rawValue == 0)
    {
         c.rawValue = "0"; // If c is a numeric field. If it is a text field then you could put a message "division by zero"
    }
    else
    {
         c.rawValue = a.rawValue / b.rawValue;
    }
    

    Hope that helps,

    Niall

  • How to bind the form field in two pdf documents

    Is there a way to link two form fields. 1 document allows the reader to enter the text in the field. However, I would like any document 2 to display the text as well. Is this possible?  Please notify.

    Hi lysaj85192398,

    There is no direct function that can perform this task. But I'm sure you can do this with JavaScript.

    Take a look at this: transfer to another PDF form fields?

    Thank you

    Abhishek

  • How to align the Hcenter fields in VFM?

    How to align the Hcenter fields in VFM? its giving problem

    solution on mine! years of posting for reference...

    what I did earlier.

    I wanted to have a manager of fixed size (maximum size) and put fields here, during an aliging then using stylebit it did not work. I used sublayout and fixed to what extent a perticular dimension

    resovled doing problem.

    It is not sufficient (or necessary) to if you want to use sublayout to have a fixed size, if you use the alignment, bcz setting hardcodedly properties, the other model overridden, so u must override the methods 'getPrefferedWidth & height', not the two held all the time, but according to the needs, if you want to:-alignment, you can try only method "width" and comparable to V-alignment. I included these methods and found that half of my UI related issues would have resolved more easily, if I tried this previously.

    Thank you best regards &.

  • How to add two lines when the second row is not visible, but also gets the first data line too?

    Mr President

    Jdev worm is 12.2.1

    How to add two lines when the second row is not visible, but also gets the first data line too?

    I want to add two lines like below picture, but want the second to remain invisible.

    tworows.png

    I asked this question but my way of asking was wrong, that's why for me once again.

    Concerning

    Try to follow these steps:

    1. in the database table to add the new column "JOIN_COLUMN" and add the new sequence "JOIN_SEQ".

    2. Add this new column in the entity object. (You can add this in entity object by right clicking on the entity object and then select "Synchronize with database" then the new column and press on sync)

    3. in your bookmark create button to create only one line NOT 2 rows.

    4 - Open the object entity--> java--> java class--> on the entity object class generate and Tick tick on the accessors and methods of data manipulation

    5 - Open the generated class to EntityImpl and go to the doDML method and write this code

      protected void doDML(int operation, TransactionEvent e)
      {
        if(operation == DML_INSERT)
        {
          SequenceImpl seq = new SequenceImpl("JOIN_SEQ", getDBTransaction());
          oracle.jbo.domain.Number seqValue = seq.getSequenceNumber();
          setJoinColumn(seqValue);
          insertSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        if(operation == DML_UPDATE)
        {
          updateSecondRowInDatabase(getAttribute1(), getAttribute2(), getAttribute3(), getJoinColumn());
        }
    
        super.doDML(operation, e);
      }
    
      private void insertSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "Insert into table_name (COLUMN_1,COLUMN_2,COLUMN_3,JOIN_COLUMN, HIDDEN_COLUMN) values ('" + value1 + "','" + value2 + "','" + value3 + "','" + joinColumn + "', 1)";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
      private void updateSecondRowInDatabase(Object value1, Object value2, Object value3, Object joinColumn)
      {
        PreparedStatement stat = null;
        try
        {
          String sql = "update table_name set column_1='" + value1 + "', column_2='" + value2 + "', column_3='" + value3 + "' where JOIN_COLUMN='" + joinColumn + "'";
          stat = getDBTransaction().createPreparedStatement(sql, 1);
          stat.executeUpdate();
        }
        catch (Exception e)
        {
          e.printStackTrace();
        }
        finally
        {
          try
          {
            stat.close();
          }
          catch (Exception e)
          {
            e.printStackTrace();
          }
        }
      }
    
  • filters table based on two input fields

    Hello

    I need help, I'll have a single VO read and query is included with where clause and bind variable assume them query is like

    (select in... where updatedate > =: p_fromdate and updatedate > =: p_todate).

    In the user interface, I need to take two input fields date fromdate and to this day, when I get the table of dates (read only VO) should filter.

    what I want is if I enter Fromdate and gets stuck on day of entry values: p_fromdate and: p_todate.

    And I want without using the view criteria.

    Hello

    It would really help if you could give us some basic information, yet vital such as your version of JDev.

    There are many ways to implement your requirement. One of them uses a method of AM that will define and execute your view read-only object.

    Please follow these steps:

    (1) generate the implementation of AM class

    (2) create a custom method like the following:

    {public executeMyReadOnlyView Sub (fromDate Date, Date to date)
    ViewObjectImpl readOnlyView = getReadOnlyView();
    readOnlyView.setNamedWhereClauseParam ("p_fromdate", fromDate);
    readOnlyView.setNamedWhereClauseParam ("p_todate", to date);
    readOnlyView.executeQuery ();
    }

    (3) expose this new method via the client interface

    (4) drag this new method into the page as a button (and link the fromDate parameters and to this day)

    Antonis

  • How you gray out / disable fields in an option button if another radio button is selected in Adobe Acrobat Pro XI?

    How you gray out / disable fields in an option button if another radio button is selected Adobe Acrobat XI Pro?

    I have created a form where the user has three options to make a payment.

    1. charge on my credit card
    2. costs related to the bank account
    3. By check or money order

    My problem is, under each option, there are required fields that must be filled. So if the user chooses the first option, charges on my credit card, they would fill in the mandatory fields (card credit number, expiry etc.). But when they click on the "submit" button to send the form, he won't let them, because there are a of the fields required in the title of the second the second option, the costs related to the costs related to the bank account. Is there a way to gray out or disable the other two payment options when it is taken. I guess I'll have to use javascript, but what would be the coding and what field do I write under?

    Thanks in advance guys

    I do all the fields that are not required until the user selects the relevant box.

    For example, as soon as the user selects the credit card radio button, only credit card fields are required.

    It could be the script to make the credit card required/not required fields:

    var r = this.getField("PaymentMethod").value;     Use the name of the radio here group

    var CCfields is ['Field1', 'Field2', 'Field3'];.         Enter the names of the fields of credit card here

    If the user has chosen credit card as payment method, make the required credit card fields

    If (r == 'Credit Card') {}

    for (var i in CCfields) this.getField(CCfields[i]).required = true;

    }

    Else, no required credit card fields

    else (var i in CCfields) this.getField(CCfields[i]).required = false;

    You should do something similar for other types of 2 payment, for example

    If (r == "Bank account") {}

    do something

    }

    etc.

    ......

  • two corresponding fields.

    see I had only one table, it includes columns.


    ex: describes my need


    class - text entry class desc - entered text parent classes - text with from lov of entry + / / these three my fields in my table > show as column of the table. +



    Class P1 parent null


    Child C1 class p1


    OK, these things entered by the user.


    After that. erase the p1 - this is the parent class.

    and yet "c1" - class child is exist with parent refereing class.

    as that user, this means.


    This msg of error must be shown

    parent class P1 is not found for the child in class c1.


    How can I compare these fields. is not any ideas. on this subject.

    pls someone suggest me. pls post any links regarding this... pls...

    Marie, Marie Laura, Laura Marie Laura.

    Once again.

    When are you going to read the documentation?

    In fact, on your other thread on the substitution of Houston error messages, you also had someone post you a link that pointed to the section of the documentation entitled "substituting the error messages for violations of constraints of database" (or something close to that).

    Give yourself a few days to read the developer's Guide to Fusion for the ADF from end to end. I promise you, you'll be glad you did. You don't remember everything in it, but when you run into a problem, you think to yourself "Hey, Laura Marie, has not read something somewhere in the documentation? We will go for a scan of the table of contents to see... »

    John

  • How to create the text field that accepts (only Alphabates no numbers or numbers)

    Hey guys,.

    I just want to know how to create a text field that accepts (only text without characters or numbers)?

    I want to insert validation that field only accepts the alphabates no number or numbers are allowed!


    Thanks in advance!

    In the designer, click the field that you need to validate and open the script window, together the menu show drop-down list to validate in the drop-down list and place the code in the script window. Make sure that the language is Javascript and run is defined on the Client. If you don't see the script window goto window-> Script Editor Menu item.

  • How to distinguish the same fields of XML to RTF model?

    Hi friends,

    I am using the XML file as a data source and create running in peoplesoft.
    There are two data fields same "DESCR", which are the filling running.
    Now if we run report, second field 'DESCR' shows value of the first field "DESCR".

    How to avoid above question, if same data fields in a single RTF model?

    You can have as


    I think that's what you need.

  • How to connect two databases on two servers

    How to connect two databases on two servers. For example
    a serevr is in India and another in Australia.
    The following example is correct or not

    Select A.ID, B.Name [10.50.17.87] .HR. EMP A, [192.168.100.125] .HR. TRANS B
    Where A.ID = B.ID

    You must use a database for this link. The syntax is defined in the reference SQL here: http://download.oracle.com/docs/cd/E11882_01/server.112/e17118/statements_5005.htm#SQLRF01205

  • How to get the value of viewattribute and how to assign the text field. URG

    Hi all,
    I created messagestyled text programmatically and I want the value of viewAttribute.
    I don't know how to define the instance of the view and display attribute.

    I tried this way, it is what is called the vo class but after that i dnt know how to set

    Here the code that I used...

    (1) I create the messagestyled text
    OAFormattedTextBean cctextbean = (OAFormattedTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, FORMATTED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCText");

    OAMessageStyledTextBean ccidbean = (OAMessageStyledTextBean) pageContext.getWebBeanFactory () .createWebBean (pageContext, MESSAGE_STYLED_TEXT_BEAN, OAWebBeanConstants.VARCHAR2_DATATYPE, "CCId");

    (2) and I called the view object
    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");

    (3) I want to set the view instance and viewattribute using code. This stage i dnt know how to define.

    (4) I want to know, how to get the value of the attribute to display and how to set the value to the messagestyled text field.

    I'm new to OFA. It's Urgent.

    Thanks in advance
    Fabrice

    Hello

    use
    Import oracle.jbo.Row;

    OAViewObject ccview = (OAViewObject) AM.findViewObject ("CmpnyDetVO1");
    Line line (Row) = ccview.first ();
    Test String = (String) row.getAttribute ("");

    then to set the value of the text of messagestyled

    OAMessageStyledTextBean bean = (OAMessageStyledTextBean) webBean.findindexedchildrecursive ("CCId");
    bean.setText (test);

    Thank you
    Gerard

    Published by: Gauravv on August 4, 2009 09:38

Maybe you are looking for

  • The popup of the rightclick 'bookmark this page' is missing, where it gives you the list of folders.

    When I'm on a page and I want to favorite I right-click and choose 'Bookmark this page', then the dialog box shows where you see 5 of your files for which you can put the page.This dialog box is not displayed since the upgrade to FF13

  • Problems loading XP service pack 1A

    I had to reboot my Dell Dimension 4500 XP Reinstall drive and am now trying to install the service Pack 1a, 2 & 3.  When I pass part sp1a I get an error message: http://xpSP1.microsoft.com/isapi/pstream3.dll/xp/SP1.USA.1106a- Anyone know how I can ge

  • Exchanging ink - new printer uses a different former ink

    Hello I was wondering if anyone else has experienced this problem. I bought hp ink cartridges for my old printer through hp.com since I bought the printer about 6 years ago.  I worked from home 3 days a week and used my printer very often.  For the l

  • Caddy drive for Optiplex 7010?

    Recently bought an Optiplex 7010 to replace a former Dell for the office. I have a 1 to 3.5 drive that has only 1 year that I want to install in the new machine as a second hard drive. I thought that I needed an extra SATA cable, but I wasn't aware t

  • Impossible to update or uninstall QuickTime

    I repeatedly get an error message "Error getting file security C:\Program Apple Computer\ Installer Cache\ Quicktime 7.65.17.86\GetLastError: 5 ' when I try to install an update to QuickTime on Windows 7 and even when I tried to use the uninstall fea