The application element "Gauge" is designed to display speeds, volumes,
pressure, temperature and fill levels.
This workshop will demonstrate how to display the number of users currently
logged in to the portal using the gauge.
2. Example application
You can download the example application
into your portal as usual.
You will find the gauge on the "Users online" page. On the
in the properties dialog, you can define which data should be displayed in the
gauge. The static value 0 is well-suited as a starting value. The static
value 5 is selected as the ending value in our example. You could also get
the total number of users from the database, save this value to the sharedState
and read it in the properties of the ending value.
The system value "usersOnline" from the processing context (i.e. sharedState)
is then selected for the displayed value.
You can also define the "Users online" page as a
portlet and add it to