Hi,
I have two buttons that both triggers some functions on select:
- Function one: SubmitForm(Form2)&&Refresh('Timeføring historikk')&&ResetForm(Form2)
- Function two: (ClearCollect(Samling;(AddColumns(GroupBy(AddColumns(Filter('Timeføring historikk';Navn=navnTilBruker);"Prosjektvalg";Prosjekt.Value);"Prosjektvalg";"ValgtProsjekt");"SumAvTimer";Sum(ValgtProsjekt;Antalltimer)))))
Everything works as it should when I first select the first button, then the second. The problem occurs when I want to trigger both functions by only pushing on button. I tried to add the second function to the first one by adding "&&" like I did with the first function, but with no success. I guess it has to do with the SP collection that both functions refers to. But as long as the firs function runs first, the list should be updated before the second function takes that list as input for creating a new collection.
Solved! Go to Solution.
I believe you have the wrong syntax for a line-break. The double semi-colon ;; is a line-break. You should use it instead of &&.
SubmitForm(Form2);;
Refresh('Timeføring historikk');;
ResetForm(Form2);;
ClearCollect(Samling;(AddColumns(GroupBy(AddColumns(Filter('Timeføring historikk';Navn=navnTilBruker);"Prosjektvalg";Prosjekt.Value);"Prosjektvalg";"ValgtProsjekt");"SumAvTimer";Sum(ValgtProsjekt;Antalltimer))));;
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
I believe you have the wrong syntax for a line-break. The double semi-colon ;; is a line-break. You should use it instead of &&.
SubmitForm(Form2);;
Refresh('Timeføring historikk');;
ResetForm(Form2);;
ClearCollect(Samling;(AddColumns(GroupBy(AddColumns(Filter('Timeføring historikk';Navn=navnTilBruker);"Prosjektvalg";Prosjekt.Value);"Prosjektvalg";"ValgtProsjekt");"SumAvTimer";Sum(ValgtProsjekt;Antalltimer))));;
---
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
Hi @dahlgebra
I think it would work if your replaced the && with ;;
Then the functions should work sequentially.
User | Count |
---|---|
125 | |
87 | |
84 | |
75 | |
69 |
User | Count |
---|---|
214 | |
178 | |
140 | |
105 | |
83 |