title: TYPO3 - Use TS in Flexform OR flexform in flexform
body: <p>I would like to run this flexform code with data from a table and the PID in SQL query set dynamically.</p>
  
  <p>Is that possible?</p>
  
  <pre><code>&lt;label&gt;Selectbox from DB&lt;/label&gt;
  &lt;config&gt;
    &lt;type&gt;select&lt;/type&gt;
    &lt;items type="array"&gt;
      &lt;numIndex index="0" type="array"&gt;
        &lt;numIndex index="0"&gt;&lt;/numIndex&gt;
        &lt;numIndex index="1"&gt;&lt;/numIndex&gt;
      &lt;/numIndex&gt;
    &lt;/items&gt;
    &lt;foreign_table&gt;tt_content&lt;/foreign_table&gt;
    &lt;foreign_table_where&gt;
       AND tt_content.pid = 22   &lt;&lt;&lt;&lt; no good at all.... What to do?
    &lt;/foreign_table_where&gt;
  &lt;/config&gt;
  </code></pre>
  
  <p>Any of these would work fine if just the FF can access the PID:</p>
  
  <ul>
  <li>PID set as storage folder for plugin</li>
  <li>PID set in TS</li>
  <li>PID set in another flexform field (with reload) and then used in the query</li>
  </ul>
  
  <p>BR. Anders</p>