I have 3 buttons which filter my list control on the client side to bring up records which have been read, unread, or both of them together (entire route is what I've called it). In order to do such a specific client filter I used this article:
https://documentation.alphasoftware....r%20Method.xml
My code is very straight forward, if it is unread the readTime field will be empty (or ''). This works great for filtering my list and has no problem with it. However when I press on a record in the filtered list, it does not bring me to the matching logical record number.
1.png
For example: If I read the first record in my list it (see picture one)
2.png
I then filtered the list for only the unread records (see picture two), it would only display the unread records. (see picture two)
3.png
However, if I click on first record in the physical list (JONES, FRED), it would take me to the second record in the physical list because it always navigates past the record I selected according to the number of records that were filtered out. (see picture three) You can see in the picture how the that was selected is gray, I went back to the list control after it navigated me to my record, and now it showed which record had been displayed.
So if I had 2 read records it would take me 2 records past the physical record I selected. The actual (or I'm calling it logical) record number is always too far forward. I can't seem to figure out why it is doing this or if there is some way I can turn this off. I highly suspect that it has something to do with it being a client side filter, but I'm not totally sure.
Here is my code for the filtering of unread records:
https://documentation.alphasoftware....r%20Method.xml
My code is very straight forward, if it is unread the readTime field will be empty (or ''). This works great for filtering my list and has no problem with it. However when I press on a record in the filtered list, it does not bring me to the matching logical record number.
1.png
For example: If I read the first record in my list it (see picture one)
2.png
I then filtered the list for only the unread records (see picture two), it would only display the unread records. (see picture two)
3.png
However, if I click on first record in the physical list (JONES, FRED), it would take me to the second record in the physical list because it always navigates past the record I selected according to the number of records that were filtered out. (see picture three) You can see in the picture how the that was selected is gray, I went back to the list control after it navigated me to my record, and now it showed which record had been displayed.
So if I had 2 read records it would take me 2 records past the physical record I selected. The actual (or I'm calling it logical) record number is always too far forward. I can't seem to figure out why it is doing this or if there is some way I can turn this off. I highly suspect that it has something to do with it being a client side filter, but I'm not totally sure.
Here is my code for the filtering of unread records:
Code:
var readings_pntr = {dialog.object}.getControl('READINGS'); readings_pntr.setFilter(false);//this just clears the previous filter readings_pntr.setFilter({ readTime: function(readTime_){ if(readTime_ == '') return true; return false; } });
Comment