This is an exported version of the JIRA issue tracker. Please use the Google Code site to open new tickets or report updates to these existing tickets. Feel free to contact the mailing list with any questions.

[RRR-13] param choices
Created: Fri, 1 Oct 2004 23:41:29 -0700 (PDT)  Updated: Mon, 17 Jan 2005 10:34:43 -0800 (PST)

Status:Closed
Project:ReportRunner
Component/s:Engine
Affects Version/s:
Fix Version/s:0.4

Type:TaskPriority: Major
Reporter:Henri YandellAssignee:Henri Yandell
Resolution:Fixed 
Environment:


 Description   
variants of a report..
ie) search for user info by name or by id.

should these be different reports? variants? an or-parameter?
Comment by bayard [ Wed, 29 Dec 2004 10:02:27 -0800 (PST) ]
<variants name="by?">
 <variant name="foo">
  <sql>where foo=?</sql>
  <param...string.../>
 </variant>
 <variant name="bar">
  <sql>where bar=?</sql>
  <param...number.../>
 </variant>
</variants>
Comment by bayard [ Thu, 13 Jan 2005 08:38:54 -0800 (PST) ]
So...talking with Eric has lead to:


<variant name="by">
  <option name="foo" value="where foo=?">
    <param name="foo" type="java.lang.Integer".../>
  </option>
  <option name="bar" value="where bar=?">
    <param name="bar" type="java.lang.Integer".../>
  </option>
  <option name="foobar" value="where foo=? and bar=?">
    <param name="foo" type="java.lang.Integer".../>
    <param name="bar" type="java.lang.Integer".../>
  </option>
</variant>

The choice of the variant will be a completely new page in the web-wizard, between the choose database and the enter information options.
Comment by bayard [ Mon, 17 Jan 2005 10:34:43 -0800 (PST) ]
Now added to the system.