Hi Johannes,
You need to include of a cmQuerySpec field from the form template in order to get results. This field is part of the CM Query object library.
In order to get some results you will also need to edit the initialize script of cmQuerySpec. This is where you define the query that will get executed at run time.
Anthony
Adobe