Looking for new "Go to step previous" transition functionality

Hello,

I am currently having a tough time trying to come up with a solution to an issue and am wondering if anyone else has found a way.

Basically, when a set of manufacturing work instructions are closed I am storing the step name that it was closed on. This is so that when another person opens that work order it will jump them to the location they left off at so they can continue with the assembly. We have quite long work instructions and so manually clicking through all the slides is tedious.

The current triggers are set so that when the app is started a transition is triggered to go to the stored step by name. However, after this transition, if you press on the “previous” button it takes you all the way back to the beginning of the instructions rather than the previous step in the app. I think this is because as the app starts it goes to the first step and then jumps to the stored step. And it seems like the “go to step previous” transition is functionally “go to the most recently active step”.

Does anyone know how to get around this? I could of course hook the previous button up so that it names the previous step as a destination, However this would require a lot of manual work on every single step. Is there a way to automate this?? Or maybe a widget that achieves my desired “Previous” button functionality?

Hello Sam,

I have some ideas. How are you managing the storage of the “current step” currently? Are you doing this on the Base Layout for each app, so that you only need to manage the trigger logic in one place per app?

Current step is stored in the work order table whenever the app is closed. This way a set of instructions will remember different current steps when opened based on which work order is being worked on.

Got it. Here’s an idea.

First, create a variable of type “Text List” in the app.

Then, add a “step enter” trigger on the base layout of every app, which adds the current step to that array variable. This will give you the ordered list of all steps that a user has visited in order.

Then, when the user exits the app, save the second to last item in that array to the same work order table record as a new field, previous step. Since the last item would be the current step.

Per app, this system would require

  • 1 new text list variable
  • 1 new trigger on the base layout with 1 action
  • 1 new action in your existing “app exit” logic