Forum

Welcome to ProjeQtOr new Forum. We migrated old forum to the new website.
You will find all your posts here, with your usual account.
Just one point : you’ll have to reinitialize your password. Use “Lost password” feature.

Add filters
 
Notifications
Clear all

Add filters

6 Posts
2 Users
0 Reactions
3,841 Views
LEVA
 LEVA
(@leva)
Posts: 54
Active Member
Topic starter
 
[#1170]

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.


 
Posted : 20 May 2013 11H59
(@babynus)
Posts: 14952
Member Admin
 

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.


 
Posted : 20 May 2013 19H04
LEVA
 LEVA
(@leva)
Posts: 54
Active Member
Topic starter
 

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"); 
      }
    }

 
Posted : 21 May 2013 10H38
(@babynus)
Posts: 14952
Member Admin
 

Yep !

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


 
Posted : 21 May 2013 16H20
LEVA
 LEVA
(@leva)
Posts: 54
Active Member
Topic starter
 

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.


 
Posted : 21 May 2013 16H29
LEVA
 LEVA
(@leva)
Posts: 54
Active Member
Topic starter
 

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.


 
Posted : 27 May 2013 14H32
Share:

Scroll to Top