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 May 02 5:56 AM
2023 May 01 5:22 PM
2023 May 02 5:56 AM
2023 May 01 5:59 PM
Hello Dan,
Just found about this challenge, thanks!
it took me a while to understand the logic of formulas... 🙂
2023 May 02 5:55 AM
2023 May 02 10:33 AM
2023 May 02 4:20 PM
Hi Dan,
This was great learning. Recently attended the build Hackathon.
Please find the result
Movie I really don't know. 🙂
2023 May 03 8:26 AM
2023 May 04 10:35 AM
2023 May 04 4:09 PM
2023 May 06 4:35 PM
Hi, this was a good challenge.
Here is my screenshot:
I found it interesting that the initial data for the StartValue (Page Variable) was found in the "Assigned value" in the Logic for the Page, instead of in the VARIABLES section where StartValue was created.
I also found it interesting to use the History>Replace to import the file instead of the Import option in Lobby.
It is nice to know the different options.
Movie is Madagascar!
2023 May 07 6:10 AM
2023 May 07 1:30 AM
2023 May 07 6:00 AM
2023 May 07 11:47 AM
2024 Apr 26 8:37 AM
2024 Apr 26 9:40 AM
Still plenty of time. Nice work 😸
Try the current challenge: https://community.sap.com/t5/sap-builders-discussions/april-citizen-developer-challenge-sap-build-ap...