Hi Rolf,
The github has an example project that has an example on how to do this. Here is the link to the test project.
https://github.com/AuraQ/AutoCompleteForMendix/blob/master/test/Test.mpr
The particular example that you want is under the template tests section, "advance template - 2"
Hope this helps!