Hey Community,
i don't know, how i change every column of my collection after button click.
This is my following Collection.
ClearCollect(
colAusprägungsWert
, {Wert: "1", Completed: false}
, {Wert: "2", Completed: false}
, {Wert: "3", Completed: false}
, {Wert: "4", Completed: false}
, {Wert: "5", Completed: false}
, {Wert: "6", Completed: false}
, {Wert: "7", Completed: false}
, {Wert: "8", Completed: false}
, {Wert: "9", Completed: false}
, {Wert: "10", Completed: false}
);
I want to change "Completed" to true, after Button click.
Patch(
colAusprägungsWert,
First(colAusprägungsWert),
{Completed: true}
)
This is my Navigation, where i want that the rectangles are filled after Button click.
Please help me out, with the OnSelect Statement.
Thanks!
Glad to help!
Please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks it worked!
@Marczii007 Set a variable in the OnStart,
Set(varCounter, 0)
Then use this formula,
Set(varCounter, varCounter+1);
Patch(
colAusprägungsWert, Index(colAusprägungsWert, varCounter),
{Completed: true}
)
Please remember to give a 👍 and accept my solution as it will help others in the future.
Thanks for the response. Sorry for my description.
I need the following: if i click on ">", the first Column Value set to "Completed: true". If i click again on ">" the second column is set to "Completed: true", what means the second rectangle is filled.
I don't need to have all filled after button click 🙂
If you need to change them all with a single click, try this in the OnSelect of a button:
ForAll(colAusprägungsWert As aRec,
Patch(
colAusprägungsWert,
aRec,
{Completed: true}
)
)
Hope that helps,
Bryan
Please try the following,
UpdateIf(
colAusprägungsWert,
true,
{Completed: true}
)
Please remember to give a 👍 and accept my solution as it will help others in the future.