Doctype arrows not functioning well

In the doctype, there are arrows to move to the next and previous document. However, for some reason, it skips some of the records. Is there a certain logic behind this or is this a bug?

1 Like

Can you please share more information? What version are you using? A video would also be helpful.

This is likely a cache issue or the way the list is filtered.

When you use the prev or next buttons to navigate through docs, it uses
the currently set filter in list view.

Hereā€™s an example of an undesired symptom but exactly how the system behaves.

If the list is filtered by last date updated (newest first) and you make an edit to the
document, after saving that document will be the first in the list, the pressing next will go to the second document, pressing previous will generate a warning that ā€œno docs are before this oneā€.

Certain records appear in the list but not when using the arrows. When clicking on does records and using the arrows forward and backward, that record does also not show up. I could not figure out why these specific records do not show up.

This is without editing any of the records, and on the latest version of Frappe. Unfortunately, I cannot share a video due to sensitive information in those records.

It also happens without updating the list and after changing the filters. A colleague was updating all the records and could not figure out why some were not updated. I never experienced any updates with this since I never used those arrows. So I decided to use the arrows as well to try (without updating any records) and it was skipping the exact same records as he experienced.

The next thing I did was open a record that did not show up when using records via the list view and use the arrows to move forward and backward. Again, this record did not show up anymore.

Ironically I just experienced this symptom. In my scenario, I was navigating through a list (sorted by a field. I had duplicate names for Company Name. After opening the first record pressing the next arrow key skipped all documents with the same name.

Iā€™m curious if you are seeing the same symptom.

Now you mention it, I am noticing the same thing. For us, the doctype has member names and indeedā€¦it skips duplicate names of people that have the same first name. I will include this finding in my issue on the Github page