Skip to Content

Agentry: Trigger action when changing main screen tab

Hi,

I'm adapting Work Manager for iPad and in my main screen I have 4 tab screens: Work Orders, Notifications, Time Sheets and Crew Manager.

I would like to trigger a List Selection action step when the user navigates to the Time Sheets tab in order to select the current day of the week automatically. I already created and tested the action with a button and it's working fine but I don't find a way to trigger an action when changing main screen tabs.

Here my main screen:

In the screen definition there is not much I can define... just the icon, size and styling...

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    May 12, 2014 at 02:19 PM

    Unfortunately there isn't any action hook available that can execute an action when a user selects a different tab in the application. My only though would be to run your list selection step when the user clicks any of the main menu options to see if that would pre-set the selection to today on the Timesheet screen even if the navigation step is going to Work Orders.

    --Bill

    Add comment
    10|10000 characters needed characters exceeded

  • May 12, 2014 at 03:08 PM

    Marcal,

    Bill is right (as usual). There is no way to trigger an action with a tab change. You could remove timesheets as a tab and instead force the user to navigate there with a menu or toolbar action. Then you could fire off your list selection after the navigate.

    I like the idea though of an action tied to a screen tab. That is a good change request for the platform.

    Jason Latko - Senior Product Developer at SAP

    Add comment
    10|10000 characters needed characters exceeded

  • May 12, 2014 at 03:45 PM

    Ok, thank you both, the question has been answered 😊

    Regarding Bill suggestions I think there are too many possible actions in the main screen where to apply the selection step.

    And to apply Jason's workaround I need to do a major UI change and user's are too familiar now with the solution that has been in production for a while...

    I think I will set the date after transmit. It won't work on the initial load and when user manually selects a different day and comes back to the tab, but I think it will cover more than 90% of application uses since they are supposed to synchronise every morning and register time for the current date usually.

    @Jason: I hope you can tell the idea to the engineering team 😊

    Add comment
    10|10000 characters needed characters exceeded

    • Why not just add a Today button on the Timesheet screen so that if a user selects a different date or when teh navigate in the first time they can always press the today button to auto-select that value in the list?

      Should be just on the one screen to update but might be an easy shortcut solution.

      --Bill