question

RojasDiazLauraMarcela-0301 avatar image
0 Votes"
RojasDiazLauraMarcela-0301 asked RojasDiazLauraMarcela-0301 edited

Problem with Update Context

Hi All!

I'm trying to subtract the value of the field "Cantidad a comprar" to Available ("30 unidades disponibles) (you can see this in the attachment). This screen works with UpdateContext, this is a formula of a template (Assets).

I try to change "-1" with:

UpdateContext({NewRecord:Patch(Products,First(Filter(Products,ProductId=ItemSelected.ProductId)),{Available:Text(If(Value(ItemSelected.Available)>0,Value(ItemSelected.Available)-Value(Value5.text),ItemSelected.Available))})});Navigate(ConfirmationScreen,ScreenTransition.None)

But it doesn't work... and I don't understand why...

I hope you can help me!

99599-imagen-sin-titulo.png


office-teams-app-dev
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

0 Answers