
25 May, 2022
Blog
By Anders Svensson
In our previous article Par1 of this series, we presented the Agama AWE SDK, the requirements needed to create a simple application to provide real use for Agama customers and the configuration of the project.
In the second part of the series, we're diving into how to create the layout and styling, and also elaborate on the application logic.
We have created a boilerplate application and defined the configuration parameters that shall be possible for the users to adapt. It is now time to start creating the actual functionality of the application. An important part of that is the actual layout and structure of the presentation, which for these applications is controlled by standard HTML, CSS, and JavaScript. In the application index.html below, we have modified the boilerplate HTML structure and instead defined a set of div:s used as placeholders for the configured test name and a div for the status indicator.
The ADE will automatically update the UI while editing and saving HTML so the structural changes will be shown immediately. The result is not interesting right now as we have not yet populated the div:s with any content and styling, so the result is still just an empty screen.
The Application logic To start populating the application with the configured content, test logic and the test status results, we need to start adding JavaScript code.
The main application entry point that is called by the Agama application framework is the onUpdate function. This function has two parameters, state and reason. The state parameter is an object that contains the configuration of the application. So, all the parameters that we defined in the JSON returned in the onConfiguration function, will be available in this object. The reason parameter is an integer stating why the function is being called; it allows us to implement different handling and behavior depending on this. In our application we must handle the create and configuration change reason. In the code above one can see how easily and obviously we can access and use the different configuration parameters that we have defined.
The program logic needed to implement the functionality is quite simple. When the application is created, we set up a timer that ensures that our test function update() is called at the user configured interval. The update() function in turn calls the defined REST API and checks the result codes against the configured, and depending on the result adding either a fail or ok CSS class to the status div.
The current result is now as above. We can now see the defined test name, in this case VoD system (which is the name we configured) but we do not see any status symbol. That is correct and it is because we have not yet added the styling for the status div.
Styling Adding CSS styling for the application is the last step in getting the applications appearance and functionality in-place. We use the automatically created file css/style.css and add the following.
It is here where we define the fail to indicate with an orange background, and ok to indicate with a green background.
Yes, now it looks more promising!
Most recent headlines
11/12/2025
Dalet, a leading provider of cloud-native, end-to-end media workflow solutions, ...
10/12/2025
Sound-Alike Commercials Are Part of Sports' Soundtrack Johnny Cash for Coca-Cola is the latest in a long litany of sonic approximationsBy Dan Daley, Audio ...
10/12/2025
Immersive Sound Is Logical Next Step for Sports VenuesSound-systems suppliers are sanguine, but the market has its challengesBy Dan Daley, Audio Editor
Wednes...
10/12/2025
The Romans Built Arenas for Immersive Sound 2,000 Years AgoThe historic Arena of Nimes in France is still in use todayBy Dan Daley, Audio Editor
Wednesday, De...
10/12/2025
SVG Summit 2025 Preview: Audio Workshop Hits on Immersive, Virtualized, and Next...
10/12/2025
SVG Summit 2025 Technology Exhibits Preview: Audio SpotlightBy SVG Staff
Wednesday, December 10, 2025 - 8:21 am
Print This Story | Subscribe
Story Highlig...
10/12/2025
SVG Europe Audio: Listening to the sounds of powder and ice at Milano Cortina wi...
10/12/2025
Advancements in audio technology: Capturing the atmosphere of live sports By David Davies
Tuesday, November 25, 2025 - 09:27
Print This Story
Although wor...
10/12/2025
Everything smelled of popcorn: The art of bringing the complex sound of esports ...
10/12/2025
Top L-R: Ha-Chan, Shake Your Booty!, Hanging by a Wire, Broken English, Buddy
C...
10/12/2025
For the first time, Spotify is giving users the power to steer the algorithm. Gustav S derstr m, Spotify's Co-President, CPO, and CTO, shares the vision beh...
10/12/2025
L3Harris' new contract for Guided Multiple Launch Rocket System Insensitive ...
10/12/2025
L3Harris Meadowlands system has been designed with an open architecture software system that allows for more flexible and efficient software updates. This capab...
10/12/2025
During this interval, streaming comprised the majority of ad supported TV (46.4%...
10/12/2025
NEWPORT BEACH, Calif. Bitcentral, a provider of production, asset management, playout and streaming workflow solutions, has named technology veteran Rick Arnold...
10/12/2025
TV Tech is delighted to reveal the winners of the 2025 Media & Entertainment: Best in Market Awards....
10/12/2025
BOTHELL, Wash. The Alliance for IP Media Solutions (AIMS), the Video Services Forum (VSF), the Advanced Media Workflow Association (AMWA) and the European Broad...
10/12/2025
In a notable example of how pay TV operators are integrating streaming services into their lineup and using those services to retain or attract subscribers, Dir...
10/12/2025
Today, Chaos builds instant feedback into the viewport, connecting Maya and Houdini to Chaos Vantage's real-time path tracer. Artists can now assess 3D asse...
10/12/2025
Smeup, a key partner for companies engaged in digital transformation, today announced the expansion of its adoption of Cubbit, the first geo-distributed cloud s...
10/12/2025
Mediagenix, a global leader in smart content solutions to profitably connect the right content to the right audience, today announced two significant milestones...
10/12/2025
BEAVERTON, Ore. HDR10+ Technologies, LLC has announced that they will soon begin the licensing and certification of devices, content, and services that support ...
10/12/2025
SMPTE has joined forces with the European Broadcasting Union (EBU) and Entertainment Technology Center (ETC) to publish an updated report on AI and its impact o...
10/12/2025
Clear-Com is pleased to announce the appointment of Kris Koch as Director of Sales - North & South America. In this expanded leadership role, Kris will oversee...
10/12/2025
Mavis today announced the latest version of Mavis Camera (v7.4), a major update to its professional iOS camera app, headlined by the launch of Film Kit - an opt...
10/12/2025
Creamsource, renowned for its Vortex series of cinematic lighting, is laying the groundwork for its next phase of growth with the addition of Markus Zeiler as G...
10/12/2025
Digital Alert Systems, a global leader in emergency communications solutions for media providers, today announced that the DAS3-DC-PS, a new DC power supply opt...
10/12/2025
Riedel Communications today announced it has formed a strategic partnership with Racing Electronics, a premier provider of motorsport communication equipment in...
10/12/2025
#GALSNGEAR is launching two signature leadership retreats in early 2026, designed to equip women in media, entertainment, and technology with the tools to lead...
10/12/2025
Providing worldwide customers with total confidence through transparent, all-inclusive pricing
CVP, one of Europe's leading suppliers of professional video...
10/12/2025
With the Federal Communications Commission working on new rules for the deployment of NextGen TV, next year promises to be an important one for both the future ...
10/12/2025
DENVER Tom Rutledge, director emeritus and former president and CEO of Charter Communications, will be honored with the 2026 Bresnan Ethics in Business Award by...
10/12/2025
NEW YORK Novocap's Cadent has acquired VuePlanner, a YouTube video ad planning, optimization, and measurement company in a deal that will help Cadent expand...
10/12/2025
In preparation for the madness of March, here are some important reminders for scheduling back-to-back Special Playlists.
The first Special Playlist MUST end b...
10/12/2025
10 Dec 2025
VEON's Rising Capital Markets Profile Strengthened by Inclusion...
10/12/2025
10 Dec 2025
VEON Recognized for JazzCash, Kyivstar and Jazz at the World Commun...
10/12/2025
December 10th, 2025
TRIBECA FILMS TO RELEASE THE INDEPENDENT DOCUMENTARY FILM...
10/12/2025
Wednesday 10 December 2025
Sky extends partnership with the Ladies European Tour for a landmark 30th year
Sky and the Ladies European Tour (LET) have announce...
10/12/2025
Wednesday 10 December 2025
Walk-on if you love the darts: James Maddison, Luke ...
10/12/2025
Rohde & Schwarz presents world's first RF power sensor with 0.80 mm RF conne...
10/12/2025
Back to All News
2026 Starts With a Swoon: Kim Seon-ho and Go Youn-jung Lead C...
10/12/2025
Back to All News
Berlin and the Lady with an Ermine Arrives to Netflix on May 15
Entertainment
10 December 2025
GlobalSpain
Link copied to clipboard
THE N...
10/12/2025
It's out of the frying pan and into the sequins for comedian and actor Micha...
10/12/2025
Born That Way airs Thursday 18 December on RT One and RT Player
Born That ...
09/12/2025
2025 Sports Broadcasting Hall of Fame: Pam Oliver, Sideline Icon Who Redefined t...
09/12/2025
SVG Summit 2025 Technology Exhibits Preview, Part 2By Jason Dachman, Editorial Director, U.S.
Tuesday, December 9, 2025 - 7:17 am
Print This Story | Subscr...
09/12/2025
SVG Summit 2025 Preview: Cloud Production Workshop Spotlights Live and Non-Live ...
09/12/2025
Next-generation content protection: Multi-technology security is integral to com...
09/12/2025
CBS Sports Provides One-of-a-Kind Production' for UEFA Champions League Cro...
09/12/2025
Spanish Professional Basketball League Relies on NETGEAR AV, MAM Tech for Seamle...