Page 1 of 1

get applied document filter

Posted: Wed Dec 04, 2013 9:15 pm
by cditcher
Is there a way to retrieve a reference to an applied Document Filter?

For example I have applied a filter as such:

Code: Select all

AuthorAccess.getDocumentController().setDocumentFilter(new MyDocumentFilter());
Let's say that in my implementation of DocumentFilter I have added some type of getter / setter methods that I would like to use (This is hypothetical at this point). Is there a method somewhere that I can retrieve my filter after it has been set, something like

Code: Select all

AuthorAccess.getDocumentController().getDocumentFilter();

Re: get applied document filter

Posted: Thu Dec 05, 2013 11:18 am
by Radu
Hi,

We do not have the getter function for this I'm afraid, but we'll consider adding it.
As workarounds if those methods are utility methods you can make them static. Or you can keep a reference on your side of the code to the filter you have created and set.

Regards,
Radu

Re: get applied document filter

Posted: Fri Dec 06, 2013 10:22 pm
by cditcher
Thanks again for the advice Radu. I have kept a reference on my side as you suggested, so I guess a getter method would be handy, but not entirely necessary.

Re: get applied document filter

Posted: Mon Dec 09, 2013 9:39 am
by Radu
Hi,

Based on your feedback we added this getter method and it will be available in Oxygen 15.2 (probably beginning of 2014).

Regards,
Radu

Re: get applied document filter

Posted: Tue Dec 10, 2013 7:21 pm
by cditcher
Great, thanks Radu!