
In the previous blog, we established that a Business user will need to understand some fundamentals of programming in order to become an effective Citizen Developer with SAP Build Apps. In this blog post, I will explain the first of these fundamentals: Variables.
In the realm of Object-Oriented Programming, variables play a critical role. So, what is a variable?
Simply put, a variable is a value that can change depending on the conditions and information passed to the program. Variables can either be static (a fixed value that cannot change) or dynamic (can continuously change to maintain its integrity).
Within Build Apps, there are 5 main variables which you can make use of to store and access dynamic data:
Let’s think about it this way: when you log in to an application, how does this application remember that you are the user that is logged on? App Variables!
When you log on the App Variable associated with maintaining the logged in user is set to your credentials and remains this way throughout your usage with the application.
But let’s color this explanation with an example: when you filter through a list in an application, these filters are not available in entire application. But, only on the current page. These filters exist and are set only within this page, once you leave the page variables which hold the filter data no longer exist.
To illustrate this in action, imagine that you are viewing a list within an application and select an item within the list that redirects you to a page with information about that item. The text which you clicked on to access the item page is a page parameter.
Let’s build on our login example: usually, user information is not stored in the application itself. Rather it is stored in a backend database. In order to leverage the data from the database, we can retrieve your information from this database and store it within a data variable to use throughout the application.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
21 | |
12 | |
12 | |
11 | |
10 | |
9 | |
9 | |
8 | |
7 | |
7 |