
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
05/01/2027
Worlds first 802.15.4ab-UWB chip verified by Calterah and Rohde & Schwarz to be ...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
02/05/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
01/05/2026
January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...
01/04/2026
January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION
Douyin Users Can Now Create And Share Videos With Stun...
17/03/2026
NASA+'s Rebecca Sirmons and Brittany Brown offer unique look at live streami...
17/03/2026
The transition to IP has fundamentally reshaped professional media infrastructures. Video, audio, and increasingly metadata now circulate as independent, precis...
17/03/2026
Live sports streaming can push every element in your video delivery chain to its limit, exposing every potential weakness in seconds. When the Super Bowl, the O...
17/03/2026
Texas Athletics sought to modernize its media production, enhance fan experience...
17/03/2026
Ikegami USA will demonstrate the latest additions to its wide range of broadcast...
17/03/2026
TNA Wrestling and iHeartMedia announces a new multi-platform collaboration that will integrate iHeartMedia across TNA's premium live events, weekly televisi...
17/03/2026
The goal was to transform Hard Rock Stadium into a global leader in sports and e...
17/03/2026
Spectrum has announced the launch of its new Multiview feature in the Spectrum TV App, giving customers the ability to watch up to four NCAA men's or women&...
17/03/2026
Genius Sports deal also covers data technology, AI, fan engagement, and performance analysis....
17/03/2026
Net Insight is supporting the rollout of a new state-wide centralized operation with Rede Massa, which is an SBT affiliate, the Brazilian regional television ne...
17/03/2026
Featuring audio from practice sessions, qualifying races, and Grand Prix races, the film represents Apple's sports-media ambitions
At Sunday night's Ac...
17/03/2026
Live broadcast has always been one of the most demanding environments in media a...
17/03/2026
DirecTV is introducing several new viewing features, including a multi-screen March Madness Mix channel and an updated Sports Central mobile app hub, ahead of...
17/03/2026
Deltatre has announced a multi-year partnership with ATP Media, the media arm of the ATP Tour, covering broadcast graphics, data, and production across the 2026...
17/03/2026
The Detroit Pistons have announced a third consecutive season partnering with Sc...
17/03/2026
Fresh Finds Africa spotlights emerging artists and movements across the continent and its global diaspora, with listeners tuning in to discover new Afro-forward...
17/03/2026
Last month, more than 60,000 fans piled into Bangkok's Rajamangala National ...
17/03/2026
Vintage-inspired channel strip joins line-up
Black Rooster Audio's latest plug-in provides an all-in-one mixing tool inspired by classic analogue consol...
17/03/2026
Level and EQ voice, reverb and noise independently
The latest plug-in to join Accentize's collection is said to take a new approach to dialogue processi...
17/03/2026
UHF radio mic & IEM bandwidth at risk
Once again, the UHF bandwidth that is currently allocated to RF audio gear is at risk of being reassigned to high-spee...
17/03/2026
Last Friday, the first Plant Fire Department Training Week in Bavaria successf...
17/03/2026
New campaign from NAATI and SBS CulturalConnnect highlights how we all deserve ...
17/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
17/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
17/03/2026
3D streaming infrastructure provider Miris today announced the launch of a public beta for its new 3D asset streaming platform. Miris is building the infrastruc...
17/03/2026
As media organizations face mounting pressure to produce more content, faster, while maximizing value and operational efficiency, Tedial, a leading provider of ...
17/03/2026
Brainstorm, a leading manufacturer of real-time graphics, augmented and virtual production, is launching the newest version of its platform, Brainstorm Suite 7,...
17/03/2026
Limecraft today announces the release of Limecraft 2026.2, the second platform update in its 2026 release cycle. Limecraft is an AI-powered production platform ...
17/03/2026
Broadcast Solutions, a leading system integrator and provider of innovative solutions for the broadcast and media industry, showcased its latest broadcast and V...
17/03/2026
THIS ANNOUNCEMENT RELATES TO THE DISCLOSURE OF INFORMATION THAT QUALIFIED OR MAY HAVE QUALIFIED AS INSIDE INFORMATION WITHIN THE MEANING OF ARTICLE 7(1) OF THE ...
17/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
17/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
17/03/2026
QuickLink's Latest StudioEdge Models to Make North American Debut at NAB 202
Brie Clayton March 16, 2026
0 Comments
The Multi-platform Remote Gues...
17/03/2026
Frankenstein Graded with DaVinci Resolve Studio
Brie Clayton March 16, 2026
0 Comments
Sonnenfeld enhances the controlled interplay between warm and c...
17/03/2026
New Voyavox from Link Electronics with Real-Time Speech-to-Text Captioning to be...
17/03/2026
Berklee City Music Stewards META Fellowship Supporting Massachusetts Music Educa...
17/03/2026
Tuesday 17 March 2026
Disney included in the Sky TV subscription from today, b...
17/03/2026
The five-part thriller, formerly known as Inheritance, also stars Jonny Lee Mill...
17/03/2026
Tuesday 17 March 2026
Sky Arts welcomes Fearne Cotton as co-host of Landscape Artist of the Year
Sky Arts' much-loved Landscape Artist of the Year is set ...
17/03/2026
Season 2 of the darkly comic thriller will launch on Sky in 2026Tuesday 17 March 2026
Ella Purnell returns as wallflower-turned-killer in Sky Original Sweetpea...
17/03/2026
Back to All News
Fantasy Action Series Agent from Above' Puts Contemporary...
17/03/2026
Back to All News
Netflix Presents the Trailer for the Final Season of Turn of the Tide
Entertainment
17 March 2026
GlobalSpainPortugal
Link copied to clipb...
17/03/2026
The features on social media apps like Snapchat evolve nearly as fast as what...
17/03/2026
The paradigm of consumer computing has revolved around the concept of a personal...
16/03/2026
DAZN will allow fans in select international territories to watch the NCAA men...