Hi My app is only sending one entry when offline back to Sharepoint when reconnected, is it my code?
(There is a timer set to check for connection and send to sharepoint) its OnTimerEnd is
If(Connection.Connected, Patch('Haulage Operators Log', Defaults('Haulage Operators Log'),
{Haul_x0020_Truck: Can_haul.Selected,
Activity: Can_Activity.Selected,
to: Can_to.Selected,
From: Can_From.Selected,
Pit: Can_Pit.Selected,
starthours: Value(Can_Starthours.Text),
finishhours: Value(Can_Finishhours.Text)}); Clear(RD18COLLECTION))
See the submit button below
If(Connection.Connected
,Patch('Haulage Operators Log',
Defaults('Haulage Operators Log'),
{
to: Can_to.Selected,
From: Can_From.Selected,
Pit: Can_Pit.Selected,
Activity:Can_Activity.Selected,
Haul_x0020_Truck: Can_haul.Selected,
starthours: Can_Starthours.Text,
finishhours: Can_Finishhours.Text
}
)
,Collect(RD18COLLECTION,
{
to: Can_to.Selected,
From: Can_From.Selected,
Pit: Can_Pit.Selected,
Activity:Can_Activity.Selected,
Haul_x0020_Truck: Can_haul.Selected,
starthours: Can_Starthours.Text,
finishhours: Can_Finishhours.Text
}
)
);
UpdateContext({ResetVar: true});
UpdateContext({ResetVar:false});
Navigate(DetailScreen1, ScreenTransition.None)

Report
All responses (
Answers (