using "step time" in custom data field

Hi,
On 735, when a workout based on time is played, the default (non customized) screen show 3 fields, one of them is the "step time".
I want to use in another custom screen with only 2 fields layout, but I don't see the field "step time" available.
So I thought maybe to add a custom data field,
but I also don't see this information available in function compute(info)
(see https://developer.garmin.com/downloads/connect-iq/monkey-c/doc/Toybox/Activity/Info.html )

Is there any way I can get/access this information in custom data field ?
Or maybe the whole current workout structure ?

Thanks for your help,
Si.
  • You can get workout step data from Activity.WorkoutStep:

    // WORKOUT
    curWOStep = Activity.getCurrentWorkoutStep();
    if ( curWOStep != null ) {
      var stepInfo = curWOStep.step;
      stepDurationType = stepInfo.durationType; // 0...toTime 1...toDistance 2... lessThan 3...moreThan 4...toCalories 5...Open(Lap)
      stepDuration = stepInfo.durationValue;
      stepTargetType = stepInfo.targetType;
      stepTargetValueH = stepInfo.targetValueHigh;
      stepTargetValueL = stepInfo.targetValueLow;

      // code...
    }

    (...sorry - Forum does not allow me to insert code...)

  • Thanks for your reply. I'm just hoping for 'step time' to be visible on the watch face, during an activity, on additional screens to the default workout screen. I don't think that's possible 

  • Which watch do you have? My Forerunner 955 has the following workout fields (available to be used on any custom data page): Step Time, Step Pace, and Step Duration.