i'm trying to show values in the lap activities.
i have 1 fit contributor for the graph
<fitField id="3" displayInChart="false" sortOrder="0" precision="0"
dataLabel="@Strings.totpassi_graph_label"
unitLabel="@Strings.totpassi_units" displayInActivityLaps="true"/>
and another for the activity laps
<fitField id="0" displayInChart="true" sortOrder="0" precision="0"
chartTitle="@Strings.passi_label" dataLabel="@Strings.passi_graph_label"
unitLabel="@Strings.passi_units" fillColor="#FF0000" />
after start the session, i init a variable for the graph
mPassiField=session.createField(
"passi_label",
PASSI_FIELD_ID,
FitContributor.DATA_TYPE_UINT16,
{:mesgType=>FitContributor.MESG_TYPE_RECORD, :units=>"N"});
mPassiField.setData(0);
and another for the activity
mTotPassiField=session.createField(
"totpassi_label",
TOTPASSI_FIELD_ID,
FitContributor.DATA_TYPE_UINT16,
{:mesgType=>FitContributor.MESG_TYPE_RECORD, :units=>"N"});
when i add a value to the graph,
mPassiField.setData(stepsParz);
i add the same value to the activity
mTotPassiField.setData(stepsParz);
and then add a
session.addLap();
the result is that i see the values on the graph but i don't see values in the activity laps.
what i do wrong?
thank you
Federico community.garmin.com/.../1423936.png community.garmin.com/.../1423937.png