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.

BUG : filter by id ...
 
Notifications
Clear all

BUG : filter by id or name

9 Posts
3 Users
0 Reactions
11.6 K Views
(@simon)
Posts: 10
Active Member
Topic starter
 
[#95]

There is a bug in id and name filter :
- make a filter with only one result
- select and display this result : OK
- make another filter with only one result
- select and display this result : KO

The previous data stay displayed.

Regards,


 
Posted : 23 Feb 2011 13H43
(@babynus)
Posts: 14952
Member Admin
 

Hi,

Bug registered as ticket #318.

Did you notice these bugs in the "direct filters" (on top of list) or "avanced filters" ?


 
Posted : 23 Feb 2011 14H11
(@babynus)
Posts: 14952
Member Admin
 

Hi,

I could not reproduce, neither with "direct filters" (on top of list) nor with "avanced filters" ?

Could you give precisions :
- version of Project'Or RIA ?
- Browser / Version
- print screens (sentd it ot support@toolware.fr)

Thanks.


 
Posted : 23 Feb 2011 14H16
Klaus
(@climb4fun)
Posts: 449
Contributor
 

Hi Simon,

did you delete old selection criterion whilst applying new filter criteria? If not, this might be a reason for displaying old data as well. Best thing is to press CLEAR before entering new filter criteria.

Klaus


 
Posted : 23 Feb 2011 15H25
(@simon)
Posts: 10
Active Member
Topic starter
 

This bug exist for direct filter.

I use firefox 3.6 with project'Or'RIA 1.5.5
I've send a picture.


 
Posted : 23 Feb 2011 17H01
(@babynus)
Posts: 14952
Member Admin
 

Hi,

With the pictures I understood. The issue deals with direct filters.
You select a filter with one only result : the result is displayed in the list. OK
You select the item in the list (the only one) : the item detail is displayed. OK.
You change the filter to have 1 only result, different from previous : the new result is displayed in the list. OK
You select the new item in the list (the only one) : nothing happens, you still have the old detail displayed.

The origin of the issue is that when you change the filter, the selection is not reinitialised.
The first (and only) line is selected, although the item in the line is not the same.
So when you click on the line, no selection change is detected, and detail is not refreshed.
This will also occur if the filter displays several lines, if you select one line, and change filter so that the item in the selected line changes.

To correct this, the selection will just be removed on filter change.

Regards.


 
Posted : 23 Feb 2011 17H43
(@simon)
Posts: 10
Active Member
Topic starter
 

Hi,

I don't understand the correction very well.
Can you explain how can i correct this "bug" in he code ?

Thanks.


 
Posted : 24 Feb 2011 12H24
(@babynus)
Posts: 14952
Member Admin
 

Hi,

In projector.js, in function filterJsonList(), add
unselectAllRows("objectGrid");
after
if (grid && filterId && filterName) {
filter = {};

This correction will be included in V1.6


 
Posted : 24 Feb 2011 15H44
(@simon)
Posts: 10
Active Member
Topic starter
 

Ok,

Thanks.


 
Posted : 24 Feb 2011 16H15
Share:

Scroll to Top