Menu

problem with queryData tag

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

    sandra81 - 2005-04-01

    Hi !!

    Here my problem :
    I want to use queryData tag in a select.
    So there is my code :
    <db:dbform multipart="false" autoUpdate="false" followUp="/my_page.jsp" maxRows="1" tableName="my_table_1">
    <db:select fieldName="my_data" styleClass="clsSelectStyle">
                        <db:queryData        name="my_data"            query="SELECT my_data FROM my_table_2 WHERE other_data=5>"
        />
                        </db:select>

    Result : it seems to have data in the select but they aren't displayed.

    Someone can help me?

     
    • Henner Kollmann

      Henner Kollmann - 2005-04-01

      That's right. See doc of queryData tag.
      First entry of the select statement is used as key the rest for display.

      So you must write
      select my_data, my_data ...

      to see anything

      Henner

       
    • sandra81

      sandra81 - 2005-04-01

      Yes, it works fine !!
      Thanks !

       

Log in to post a comment.

MongoDB Logo MongoDB