Mapp Framework - Recepie: Selected Recipe Resets After Page Change

Hello everyone,

I’m using the recipe functionality from the mapp Framework and have encountered an issue.

I’m editing a recipe that is not displayed on the first page, so I scroll down to the appropriate page.

I then change one of the values, for example from 5 to 10.

I then navigate to another page, in this case the Trends page.

When I return to the Recipes page, the previously selected recipe is no longer selected. Instead, the selection jumps back to the last recipe on the first page

If I edit the recipe at this point, the changes are most likely applied to the currently active recipe instead of the recipe that was previously selected.

As a result, my recipe is overwritten with the currently active recipe.

This is a major issue because it’s very easy to forget to manually reselect the last recipe after returning to the Recipes page.

Is there a way to preserve the selected recipe when navigating between pages, or is there another recommended solution to prevent this behavior?

Best regards,

Tobias

Hi @marcel.voigt or @tomas.travnicek, can you help a colleague here?

@Tobias_Zadravec
This is a general issue with the table handling in mappView while connected to the MpRecipeUIConnect type.

That interface was made for VC4 and can only show 20 recipes in total before you control it with Page/Step - Up/Down to view additional recipes.
That sort of collides with the mappView approach and the selected index is reset when you navigate away and come come back.

I’ll try to take a closer look in the coming days and hopefully can inform you of a fix or that there is an actual bug. I’m pretty sure we thought about this behavior and had a handle on it.

Thanks for the explanation.

@marcel.voigt

That makes sense. Please take a closer look when you have the time and let me know if you find a solution or confirm that it is a bug.

In the meantime, I’ll continue working on the other parts of the application.

Thanks for your help.

Is there any new information about the problem?

BR,

Tobias