title: Use single value of parameter List in queryString
body: <p>I am using <em>JasperStudio 5.6.0.final</em> and the report is not generated dynamically from java code.</p>
  
  <p>I have a problem with getting single value from parameter.
  In the report I have a parameter <code>A</code> of a type <em>List</em>.</p>
  
  <p>It is not a problem to use it in a clause as <code>IN</code> statement:</p>
  
  <pre><code>AND $X{IN, USER.ID_USER, A}
  </code></pre>
  
  <p>But I have a problem to get a single value from that list.
  I know that my List has always 10 values.
  So I want to use it in query, but I don't know how to write the statement:</p>
  
  <pre><code>AND USER.ID_USER = *first_value_of_list_A*
  </code></pre>
  
  <p>e.g.</p>
  
  <pre><code>AND USER.ID_USER = $P!{Atrybuty}.get(1)
  </code></pre>
  
  <p>doesn't work</p>
  
  <p>I tried also to assign parameter value to a variable, but as I know it isn't possible to use variables in queryString.</p>
  
  <p>So my question: How to get single value from parameter List in queryString.</p>