FoundsetFilterParam and extended forms

Hello,
Maybe I am doing something wrong, but heres my dilemma
I want to be able to extend a base form that has a foundsetFilter, and the extended form needs to have a different foundsetFilter, both forms use the same table.
Should this work?

Phillip,

Foundset filters are not set on forms but on foundsets.
I guess somewhere in your form code (onshow method?) you set the filter.
You can override that behaviour in your subform to set another filter.

Hope this helps,
Rob

HI Rob,

This does not seem to be the case. I have attached a sample solution which outlines the problem.

fsfilterparam.servoy (4.96 KB)

Hello Rob,
Is there any movement with this issue?.
I am currently using the latest build of developer and it is still a problem. I really need this functionality.

Hi Phillip,

All filters get set on the same foundset so you have to remove the filters you have set previously before adding a new one. Like this:

foundset.removeFoundSetFilterParam(“countryfilter”);
var success = foundset.addFoundSetFilterParam(‘country’, ‘=’, ‘France’, ‘countryfilter’);
foundset.loadAllRecords();

I attached a working version of your sample.

Regards,
Omar

fsfilterparam.servoy (4.94 KB)