
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/11/2025
Luxembourg, 6 November 2025 -- SES S.A. fully consolidates Intelsat from 17 July 2025 and announces financial results for the nine months and three months ended...
11/11/2025
NEW YORK AccuWeather has announced a multi-year deal with MS Now to provide weather forecasts, content, data, and access to its expert meteorologists to the net...
11/11/2025
NEW YORK Ookla has introduced Speedtest Pulse, a new network diagnostic device designed to provide definitive, smartphone-based validation and troubleshooting f...
11/11/2025
In a rollout that will further heighten the competition between streaming services and local broadcasters, Prime Video is rolling out location-based interactive...
10/11/2025
New frontier: Extreme H's Ali Russell on the evolution of motorsport from el...
10/11/2025
SVG Sit-Down: How the XR Sports Alliance Makes XR Easier Than Ever for Rightshol...
10/11/2025
FutureSPORT 2025: F1's Wendy Hendrickx on putting fans at the heart of the a...
10/11/2025
Paul Tagliabue, Former NFL Commissioner, Sports Broadcasting Hall of Famer, Dies...
10/11/2025
Act Now! SVG Summit Complimentary Registration Closes on Dec. 9Don't miss out on the biggest event of the year in sports productionBy SVG Staff
Monday, No...
10/11/2025
2025 Sports Broadcasting Hall of Fame: Jerry Jones, Visionary of ValueDave Barron, SVG Contributor
Monday, November 10, 2025 - 2:30 pm
Print This Story | S...
10/11/2025
(L-R) Kali Reis, Josh O'Connor, and Max Walker-Silverman attend the 2025 Sundance Film Festival premiere of Rebuilding at Eccles Theatre on January 26, 20...
10/11/2025
NEW YORK Nielsen said it has started releasing rankings of the most-watched college football teams. In its first ranking, through the first 10 weeks of the seas...
10/11/2025
LONDON Viewers who remember a time before YouTube existed are the biggest consumers of the platform's movies and TV shows, according to a new report from Am...
10/11/2025
Lightware, an industry leader in signal management, has announced a series of updates to its Lightware Academy courses, including the launch of a new Taurus Roo...
10/11/2025
Marks Thuraya's first operational entry into South Africa
Extends reliable,...
10/11/2025
10 Nov 2025
VEON Raises 2025 Outlook, Robust Revenue and EBITDA Momentum, Direc...
10/11/2025
Shining a Spotlight on Storytelling: Marcus Van Altena Joins Techtel as Business...
10/11/2025
Monday 10 November 2025
Sky News partners with Arc XP to power the future of digital journalism
Today, Sky News can announce that it has partnered with Arc XP...
10/11/2025
Rohde and Schwarz Cybersecurity to develop solutions for VS laptops
Munich, 10th of November 2025 - Rohde & Schwarz Cybersecurity has developed a specialized...
10/11/2025
Satellite Payload and Components Testing with instruments from Rohde & Schwarz a...
10/11/2025
Back to All News
The Elixir' Brings Indonesian Zombies to The World
Entertainment
10 November 2025
GlobalIndonesia
Link copied to clipboard
The Elix...
10/11/2025
Back to All News
Netflix ISP Speed Index for October 2025
Product
10 November 2025
Global
Link copied to clipboard
This month, 1% of Internet Service Prov...
10/11/2025
Back to All News
Love Is Blind: Italy - Now Available the Trailer for the Itali...
10/11/2025
76 animals. Six locations. Two Irish stars. One Pet Mobile.
From surfing dogs t...
10/11/2025
Editor's note: This post is part of Think SMART, a series focused on how lea...
09/11/2025
Back to All News
Badly in Love': A Wild New Reality Dating Series from Jap...
09/11/2025
Dalet today announced a transformative leap forward for media operations: Agentic Artificial Intelligence (AI) that unifies the Dalet ecosystem under one natura...
08/11/2025
College Hoops Preview 2025: TNT Sports Puts Multi-Feed Production Model Front an...
08/11/2025
While most station groups reported major declines in ad revenue in the third quarter, thanks to a steep decline in political advertising compared to a year ago,...
08/11/2025
NEW YORK Nielsen has announced that it has started releasing rankings of the most watched college football teams. In its first ranking, through the first 10 wee...
08/11/2025
LOS ANGELES OpenDrives recently hosted an event at its headquarters here marking the soft launch of Astraeus, its new data services platform....
08/11/2025
Capitol Broadcasting Company Director of Technology Peter Sockett was honored on October 29, 2025, with the Wade H. Hargrove Community Leadership Award from the...
08/11/2025
Berklee Artists Return to Perform at Boston Snowport Holiday Market The performances, a weekly highlight of the holiday market, are the result of a partnershi...
08/11/2025
Berklees 2026 Alumni Grammy Nominees: See the Full List From R&B and Americana to gospel, jazz, and game scoring, Berklee talent was recognized across a range...
07/11/2025
SVG Sit-Down: Athlos NYC CMO Kayla Green on Building the Brand of the Young Trac...
07/11/2025
SVG Sit-Down: Inside Wasabi's Egress-Fee-Free Cloud Offering with Mike Welts...
07/11/2025
PGA TOUR On the Road: How NEP Supports the TOUR's Spectacular Centralized Fa...
07/11/2025
Analysis: No matter the sport, women need a fair share of the biggest stages By Callum McCarthy, Editor-at-Large
Tuesday, November 4, 2025 - 10:19
Print Th...
07/11/2025
DAZN to stream first live football match on TikTok By George Bevir
Friday, November 7, 2025 - 09:55
Print This Story
DAZN has partnered with TikTok to str...
07/11/2025
SVG Sit Down: E1 Founder/CEO Rodi Basso on the Future of E1 Series and Bringing ...
07/11/2025
TNT Sports Puts Multi-Feed Production Model Front and Center for Largest College...
07/11/2025
Kahlil Joseph attends the 2025 Sundance Film Festival BLKNWS: Terms & Condition...
07/11/2025
By Alexis Neophytides
For Jay and me, filmmaking wasn't just a response to crisis, it was a way through it.
I first met Jay in the summer of 2019. He was ...
07/11/2025
Word of mouth has always been at the heart of the Spotify experience, with people sharing music, podcasts, and audiobooks with friends and family millions of ti...
07/11/2025
A Statement from L3Harris Chair and CEO Chris Kubasik on the Secretary of War...
07/11/2025
Fincons Group, a leading international business consulting and system integrator firm, releases its free white paper, Unlocking GenAI's Potential for Appli...
07/11/2025
The European Broadcasting Union (EBU), the world's leading alliance of public service media, has awarded LiveU a five-year contract to deliver 24/7 live new...
07/11/2025
Atomos introduced Ninja TX GO, a new HDMI monitor-recorder that brings the performance of the acclaimed Ninja TX to an even wider community of filmmakers and cr...
07/11/2025
Visual Data Media Services, a global leader in content localisation and media supply chain services, today announced the completion of its acquisition of Sound ...
07/11/2025
When NBC Sports' Director of Remote Technical Operations for Motorsports Matt Hogencamp walks onto a NASCAR track, he's not thinking about lap times or ...