Menu

Problem with select tag

Help
sandra81
2005-04-04
2013-06-03
  • sandra81

    sandra81 - 2005-04-04

    In my select tag I would select by default one value.
    I try to use option selectedIndex but it doesn't work.
    Here my code :

    <db:select fieldName="id_supplier" selectedIndex="7" styleClass="clsSelectStyle" onChange="this.form.submit();">
                        <db:queryData
                            name="reference"
                            query="SELECT id_company, name FROM alter_annuaire_companies WHERE type='SUPPL'"
                            disableCache="true"
                        /></db:select>

    the id_supplier I want to select by default has value 7.

    Could you explain me where is my error?

     
    • Henner Kollmann

      Henner Kollmann - 2005-04-04

      Do want to default id=7 when you insert a new record?     Seems that dbforms do not work correct at this place.

      Could you please build a short testpage based on the bookstore example to reproduce your problem?

      Then i am able to help you!

      Cheers,
      Henner

       

Log in to post a comment.

MongoDB Logo MongoDB