ng-admin icon indicating copy to clipboard operation
ng-admin copied to clipboard

BUG-Filter operation

Open Mr-Luo opened this issue 11 years ago • 6 comments

I have three filter conditions. nickname,joindate,logindate. 1 i choosed nickname,then clicked Filter button. the request like this "xxxxxxxx?_limit=30&_start=0&nickname=add",that's right 2 i choosed nickname and joindate,then clicked Filter button the request like this "xxxxxxx?_limit=30&_start=0&joindate=2015-07-03&nickname=add 3 i choosed . nickname and joindate and logindate,then clicked Filter button the request like this "xxxxxxx?_limit=30&_start=0&logindate=2015-07-01&nickname=add why the third request' params didn't contained joindate value. PS.I didn't Clear the values.

Mr-Luo avatar Jul 03 '15 02:07 Mr-Luo

All fields seems to be in URL, if you try on the demo.

Can you share us your configuration?

jpetitcolas avatar Jul 03 '15 14:07 jpetitcolas

thanks,here is my configuration.

buyer
     .listView()   
     .title('All buyer')                                          // 标题
     .description('List of buyer')                          // 标题下面的描述
     .fields([
          nga.field('Nickname'),
          nga.field('Country'),
          nga.field('Province'),
          nga.field('City'),
          nga.field('Sex')
      ])   

     .listActions(['show','<inb-to-application entry="entry"></inb-to-application>','<inb-buyer-msn-list entry="entry" op-type="buyerList" ></inb-buyer-msn-list>']) //要获得Id必须要把entry传入
     .filters([
         nga.field('nickname', 'string').label('昵称'),
         nga.field('joindate', 'date').label('').attributes({
             'placeholder': '加入时间'
         }),
         nga.field('logindate', 'date').label('').attributes({
             'placeholder': '登录时间'
         }),
         nga.field('hasapplication', 'boolean').label('是否有7天内的application')
     ]).batchActions(['<inb-add  selection="selection" entry="entry" ></inb-add>']);

Mr-Luo avatar Jul 08 '15 02:07 Mr-Luo

The code and the UI for filters has been updated in the latest master (see the demo). Could you re-test, and report here if you still have a problem?

fzaninotto avatar Jul 08 '15 12:07 fzaninotto

Ok,I will try to do that,thanks.

Mr-Luo avatar Jul 10 '15 01:07 Mr-Luo

Any news on this topic?

jpetitcolas avatar Jul 23 '15 11:07 jpetitcolas

No news for about a month, closing.

fzaninotto avatar Aug 05 '15 15:08 fzaninotto