title: How to pass parameters to groovy script in OFBiz
body: <p>I'm beginner Developper in OFBiz.
  i want to process some car data and display theme with freeMarker template.</p>
  <p>first i send the <strong>carId</strong> on click to a screen named <strong>carDetail</strong> i want then to pass it to a groovy script which will query the database and send back one observation. the observation will be  pass to a freeMarker template.</p>
  <p>I don't where is the problem. here is the code of the screen.</p>
  <pre><code>&lt;screen name=&quot;carDetail&quot;&gt;
      &lt;section&gt;
          &lt;actions&gt;
              &lt;set field=&quot;carId&quot; from-field = &quot;parameters&quot;/&gt;
              &lt;script location=&quot;component://ParcAutomobile/groovyScripts/find.groovy&quot;/&gt;
          &lt;/actions&gt;
          &lt;widgets&gt;
              &lt;decorator-screen name=&quot;ParcAutomobileCommonDecorator&quot; location=&quot;${parameters.mainDecoratorLocation}&quot;&gt;
                  &lt;decorator-section name=&quot;body&quot;&gt;
                      &lt;platform-specific&gt;
                          &lt;html&gt;
                              &lt;html-template location=&quot;component://ParcAutomobile/groovyScripts/list.ftl&quot;&gt;&lt;/html-template&gt;
                          &lt;/html&gt;
                      &lt;/platform-specific&gt;
                  &lt;/decorator-section&gt;
              &lt;/decorator-screen&gt; 
          &lt;/widgets&gt;
      &lt;/section&gt;
  &lt;/screen&gt;
  </code></pre>
  <p>then i want to get an observation by doing this with groovy.</p>
  <pre><code>carId = parameters.carId
  context.carId = carId
  car = from(&quot;Car&quot;).where(&quot;carId&quot;, carId).queryOne()
  context.car = car
  </code></pre>
  <p>finally display it in freeMarker template</p>
  <pre><code>&lt;div&gt;
  &lt;#if car?has_content&gt;
  &lt;table&gt;
          &lt;tr&gt;
              &lt;th&gt;${uiLabelMap.CarId}&lt;/th&gt;
              &lt;th&gt;${car.carId}&lt;/th&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;th&gt;${uiLabelMap.CarId}&lt;/th&gt;
              &lt;th&gt;${car.carId}&lt;/th&gt;
          &lt;/tr&gt;
  &lt;/table&gt;
  &lt;/#if&gt;
  &lt;/div&gt;
  </code></pre>
  <p>help me fix this.</p>