[nhusers] Re: reload filter

2009-04-27 Thread Fabio Maulo
Try to remove the '.' (dot) in the name of the parameter. 2009/4/27 Michal > > Thanks Fabio.. I guess you are right. > Do you have a suggestion how I could change that in order to use HQL/ > Criteria? > > > On Apr 27, 7:35 pm, Fabio Maulo wrote: > > 2009/4/27 > > > > > They do in my case cause

[nhusers] Re: reload filter

2009-04-27 Thread Michal
Thanks Fabio.. I guess you are right. Do you have a suggestion how I could change that in order to use HQL/ Criteria? On Apr 27, 7:35 pm, Fabio Maulo wrote: > 2009/4/27 > > > They do in my case cause i am using them in formula. > > I know that somebody write something with a trick where a para

[nhusers] Re: reload filter

2009-04-27 Thread Fabio Maulo
2009/4/27 > They do in my case cause i am using them in formula. I know that somebody write something with a trick where a parameter in formula is set trough a filter but it is not a documented feature. Filter can work only using HQL/Criteria. -- Fabio Maulo --~--~-~--~~-

[nhusers] Re: reload filter

2009-04-27 Thread mgabru
They do in my case cause i am using them in formula. eg On Apr 27, 2009 11:20am, Germán Schuager wrote: > I think that filters do not apply when you are getting an entity by id > (get/load), just when you issue a query using HQL or criteria. > On Mon, Apr 27, 2009 at 12:37 AM, Michal mga...@

[nhusers] Re: reload filter

2009-04-26 Thread Germán Schuager
I think that filters do not apply when you are getting an entity by id (get/load), just when you issue a query using HQL or criteria. On Mon, Apr 27, 2009 at 12:37 AM, Michal wrote: > > Thanks fabio for the quick reply. > > Unfortunately this does not work. The filter stays with the same > value

[nhusers] Re: reload filter

2009-04-26 Thread Michal
Thanks fabio for the quick reply. Unfortunately this does not work. The filter stays with the same value. See my code. Thanks!: ISessionFactory sf = new Configuration().Configure ().BuildSessionFactory(); ISession sess = sf.OpenSession(); sess.EnableFilter("C

[nhusers] Re: reload filter

2009-04-25 Thread Fabio Maulo
disable->enable 2009/4/25 Michal > > Hi, > > I am using filters for my session and would like to reload the > filter's param value. How to do that? > > I am setting the filter like that > > session.EnableFilter("name").SetParameter("param", 1) > > now i would like to change the value from 1 to 2