Hi,
I want to patch a textinput that i placed in my gallery. But when i use this code it is collecting/patch the same value of the input.
How can i patch / collect the unique input from quant.Text to my SPlist ?
My code:
The code works for me fine... except the same value problem of the quant.Text.
ForAll(MyCollection;Patch(Uitgeleend;Defaults(Uitgeleend);{Titel:Titel;Categorie:Categorie;Barcode:Barcode;project:Textcart.Text;datumretour:Datepick.SelectedDate; AantalUIT: Value (quant.Text)}))
Sp Lists:
"techniekvoorraad" = Mycollection
app:
I want to patch the green box input. (quant.text)
Solved! Go to Solution.
You are working out of context of the Gallery - which is why you are getting the same value. You need to base your Formula on the Gallery.
Something like this Formula would work in context:
ForAll(yourGallery.AllItems;
Patch(Uitgeleend;
Defaults(Uitgeleend);
{Titel:Titel;
Categorie:Categorie;
Barcode:Barcode;
project:Textcart.Text;
datumretour:Datepick.SelectedDate;
AantalUIT: Value (quant.Text)
}
)
)
I hope this is helpful for you.
You are working out of context of the Gallery - which is why you are getting the same value. You need to base your Formula on the Gallery.
Something like this Formula would work in context:
ForAll(yourGallery.AllItems;
Patch(Uitgeleend;
Defaults(Uitgeleend);
{Titel:Titel;
Categorie:Categorie;
Barcode:Barcode;
project:Textcart.Text;
datumretour:Datepick.SelectedDate;
AantalUIT: Value (quant.Text)
}
)
)
I hope this is helpful for you.
Thanks it works!
The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.
User | Count |
---|---|
208 | |
97 | |
60 | |
51 | |
51 |
User | Count |
---|---|
255 | |
158 | |
87 | |
79 | |
62 |