title: How to apply conditional style to subdataset in jasper report?
body: <p>My report is working fine. But I want one modification: based on some condition, the background color of the table row should be changed.</p>
  
  <p>Now, as we know that table component is using its separate dataset (in my case). And I know that the thing which I want is Conditional Style but I am confused about how one can apply conditional style to subdataset or on the subdataset's field?</p>
  
  <p>I can use conditional style like this:</p>
  
  <pre><code>&lt;style name="BackgroundStyle" mode="Opaque" backcolor="#FFFFFF"&gt;
  
  &lt;conditionalStyle&gt;
  &lt;conditionExpression&gt;&lt;![CDATA[Boolean.valueOf($F{}.intValue() % 2 == 0)]]&gt;&lt;/conditionExpression&gt;
      &lt;style backcolor="#CCFFCC"/&gt;
  &lt;/conditionalStyle&gt;
  &lt;/style&gt;
  </code></pre>
  
  <p>How do I link to subdataset field?</p>