View ProjeQtOr On SourceForge.net
ProjeQtOr - Project Management Tool
Support us on Capterra
OIN - Open Invention Network
ProjeQtOr free project management software - Add filters - ProjeQtOr
 
 

Add filters

More
20 May 2013 09:59 - 20 May 2013 10:02 #1 by LEVA
Add filters was created by LEVA
Hi babynus,

I would like to add a customised filter on top of the list, next to id and name filter.

Despite my hard work, I still can't add a working filter.

I was able to add the field needed and link it with refreshJsonList, but then I don't understand how to make it work...

When I enter somthing, it refreshes the display, but it does not filter anything.

Do you have a hint for me ?


Thank you in advance.
Last edit: 20 May 2013 10:02 by LEVA.

Please Log in or Create an account to join the conversation.

More
20 May 2013 17:04 #2 by babynus
Replied by babynus on topic Re: Add filters
Hi,

I should have a llok, but I thnik that calling the refreshJsonList is not enough as it uses fixed parameters in the url.
So you have to take these into account.

Babynus
Administrator of ProjeQtOr web site

Please Log in or Create an account to join the conversation.

More
21 May 2013 08:38 #3 by LEVA
Replied by LEVA on topic Re: Add filters
Id did add my own condition on the dijit id to update the url but it did not work better.

Something like :
if ( dijit.byId('listMyVariableFilter') ) {
      if (dijit.byId('listMyVariableFilter').get("value")!='') {
        url = url + "&MyVariable=" + dijit.byId('listMyVariableFilter').get("value"); 
      }
    }

Please Log in or Create an account to join the conversation.

More
21 May 2013 14:20 #4 by babynus
Replied by babynus on topic Re: Add filters
Yep !

Now you have to catch this parameter and treat it in jsonQuery.php.

Babynus
Administrator of ProjeQtOr web site
The following user(s) said Thank You: LEVA

Please Log in or Create an account to join the conversation.

More
21 May 2013 14:29 #5 by LEVA
Replied by LEVA on topic Re: Add filters
Ok thanks Babynus :) I'll do this later when I have the time and let you know.

For now I have to import xlsx and I'm hard working on it.

Please Log in or Create an account to join the conversation.

More
27 May 2013 12:32 #6 by LEVA
Replied by LEVA on topic Re: Add filters
I managed to add my filters ! In fact it was quite simple since you pointed the jSonQuery.php file !

Thank you Babynus for your help.

Please Log in or Create an account to join the conversation.

Moderators: babynusprotion
Time to create page: 0.037 seconds

Cookies settings

×

Functional Cookies

Ce site utilise des cookies pour assurer son bon fonctionnement et ne peuvent pas être désactivés de nos systèmes. Nous ne les utilisons pas à des fins publicitaires. Si ces cookies sont bloqués, certaines parties du site ne pourront pas fonctionner.

Session

Please login to see yours activities!

Other cookies

Ce site web utilise un certain nombre de cookies pour gérer, par exemple, les sessions utilisateurs.