2023 Mar 30 8:22 AM - edited 2023 Apr 14 8:11 AM
This post is part of the SAP Build Community Challenge (April 2023)
This week’s challenge involves formulas – a key feature of SAP Build Apps. Formulas are used in bindings of components, and enable you to manipulate data before it is displayed in a component or before it is sent to a data source.
Formulas are created in the formula editor, which provides some tools for making writing formulas easier:
Here are some learning materials about formulas:
We will give you an app that looks like this (I like cats).
To set up the challenge, do the following:
You should now have the skeleton project.
Inside the app, we have already created a page variable called StartValue that contains the starting data that we want you to transform.
When you are ready, on the UI Canvas, select the Transform button, open the logic canvas, then select the Set page variable flow function, and finally go to set the formula for Assigned Value on the right (which currently returns an empty list).
This is what you need to do:
Your screenshot should look something like this but without the blur (I need to see the names and averages) and with your name:
Good luck ... and have fun!!
You have to do 3 things in the formula (aggregate/group, sort, round), so find a function that does each one. Use the wonderful editor features that document the available functions.
For example, for aggregating, go to the List area, and then find a function that aggregates (in this case, GROUP). You'll see all the documentation for it on the right, plus a little playground inside the documentation for testing it. Pretty cool!
2023 Mar 31 12:16 PM
2023 Apr 13 7:36 PM
2023 Apr 14 5:12 AM
Did you try out the challenge first?
After that:
https://learning.sap.com/learning-journey/compose-and-automate-with-sap-build-the-no-code-way
And internally at SAP there are additional resources, if you contact me offline
2023 Mar 31 1:50 PM - edited 2023 Mar 31 11:35 PM
2023 Mar 31 2:12 PM
2023 Mar 31 2:54 PM
2023 Apr 03 8:23 AM
2023 Apr 03 8:29 AM
2023 Apr 03 8:31 AM
Yes - we worked together with Patrik (he is my Padawan) on the solution above 🙂
Btw great Idea these dev challenges - really funny way how to learn - not just - problem solving, algorithmic thinking and as a bonus - deep dive to the tool (Appgyver) itself and documentation as well.
2023 Apr 03 9:13 AM
2023 Apr 03 10:48 AM
2023 Apr 03 11:24 AM
He does that on friday, but posted picture only on teams (and without name). Now he has day off - so just like that:
And screenshot of our team as a proof 🙂
2023 Apr 03 12:18 PM
Hi Dan,
I have overlooked this requirement on Friday. Formula updated on Friday evening as mentioned by my colleague Vlado 🙂
Have a great day.
2023 Mar 31 3:58 PM
Hello Dan,
Thanks for this challenge, tricky and interesting 🙂. Please see the screenshot below:
Regards,
Indu
2023 Mar 31 5:12 PM
2023 Mar 31 5:37 PM
2023 Mar 31 9:49 PM
2023 Apr 02 1:10 PM - edited 2023 Apr 02 1:12 PM
2023 Apr 03 10:29 AM - edited 2023 Apr 03 10:34 AM
2023 Apr 03 10:46 AM
2023 Apr 03 10:55 AM - edited 2023 Apr 03 10:57 AM
2023 Apr 03 12:30 PM - edited 2023 Apr 03 12:32 PM
2023 Apr 03 1:31 PM
2023 Apr 03 3:19 PM
2023 Apr 03 3:34 PM
2023 Apr 03 4:35 PM
2023 Apr 03 9:06 PM
2023 Apr 03 9:50 PM
2023 Apr 04 6:53 AM
2023 Apr 04 9:21 AM
Finally managed the formula using the hints you have given. Thanks for this interesting learning challenge.
2023 Apr 04 9:30 AM
2023 Apr 04 9:59 AM
2023 Apr 04 10:29 AM
2023 Apr 04 11:44 AM
2023 Apr 04 3:02 PM
2023 Apr 04 11:55 AM
2023 Apr 04 2:55 PM
2023 Apr 04 1:50 PM
2023 Apr 04 2:16 PM - edited 2023 Apr 07 10:30 AM