Help needed on addFilterParam function

Hello,

Thank You for new release 1.2 and new features as well!
The addFilterParam function seems to be just what I need,
but I’m not succesful to get it kicking :cry:

Can You give some short example?

Thanks once again, Sven

Try this:

//Add a filter parameter to limit the foundset permanently
var success = controller.addFilterParam(‘categorie’, ‘=’, ‘Open’);//possible to add multiple
controller.loadAllRecords();//to make param(s) effective

If you run this method, Servoy filters the field: categorie with the value: Open.

You only have to this once! Try it!

Note:
Most of the functions come with example code.
1)Create a new script.
2)Rightclick the function and choose “Move sample”.
3)Sample will be pasted into your script.

Thank You HJK &
Thank You Maarten

Works fine now!

Sven

Please do note that addFilterParam will be renamed to addFoundSetFilterParam in next release to make it more explicit you are altering the foundset of that form only