
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 ...
27/10/2026
Satellite, bonded cellular, and IP- and cloud-based solutions. Those are three o...
27/10/2026
Eutelsat has renewed its partnership with Qatar Media Corporation (QMC), Qatar...
27/10/2026
PROTON Camera Innovations GmbH will show the PROTON FLEXY at SATIS 2026 (Booth A13-B12), after the camera won a Best in Market award in the ProAV category at IB...
27/10/2026
ATSC, the Broadcast Standards Association, has reported results from a laboratory validation and live demonstration in Brazil of interference cancellation and s...
27/10/2026
The PGA Tour announced Monday that Brian Gordon has joined PGA Tour Studios as executive producer and head of live content. He began with the Tour on Oct. 26 an...
27/10/2026
The NBA has announced agreements to establish a framework for NBA-related predic...
27/10/2026
Apple Music, the NFL and Roc Nation have announced that JAY-Z will perform at the Apple Music Super Bowl LXI Halftime Show at SoFi Stadium in Los Angeles on Sun...
27/10/2026
DIRECTV and DAZN have signed a multi-year distribution agreement for local telec...
27/10/2026
The NHL has announced NHL Monday Night Hockey, a new initiative that will bring 11 live NHL games to fans across Europe in local primetime windows on Monday nig...
27/10/2026
Telef nica Servicios Audiovisuales (TSA) has deployed Grass Valley AMPP for Movi...
27/10/2026
SES and CANAL have extended their partnership through 2040 with a multi-year agreement covering satellite capacity across Europe, Africa and the Caribbean.
Un...
27/10/2026
Gravity Media deployed a flypack production system and RF cameras for Red Bull R...
27/10/2026
Appear has announced that NSC TV, a TV Globo affiliate in Brazil, has selected t...
27/10/2026
MLB's Ryan Zander discusses the league's work to integrate the ABS Chall...
27/10/2026
Pictured: Filmmaker Vero Kompalic (Photo by Gia Rigoli)
By Vero Kompalic
This is the last picture I ever took in Venezuela.
I had seen the girl in the row ah...
27/10/2026
Olivia Wilde, Seth Rogen, Pen lope Cruz, and Edward Norton appear in The Invite...
27/10/2026
Popular compressor plug-in upgraded
Soundevice Digital have just released a new plug-in that builds on the success of their much-loved Royal Compressor. Ava...
27/10/2026
First closed-back headphone design unveiled
ADAM Audio's second pair of headphones have just been announced, introducing a flagship open-back design tha...
27/10/2026
Popular soft synth overhauled
Native Instruments have just announced the launch of Massive XL, the latest version of their hugely popular flagship soft synt...
27/10/2026
SBS celebrates the colour, culture and joy of the Festivals of Lights with all A...
27/10/2026
Rohde & Schwarz at electronica 2026: From everyday bench work to extraordinary t...
27/10/2026
This note is to provide clarification to a previous distributed press release from NBC.
Game 1 of the WNBA Finals between Atlanta and Golden State delivered 1....
27/10/2026
aconnic AG (ISIN: DE000A0LBKW6), Munich, is prolongin an existing debt financing...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
First 20 channels move to software-defined playout as TSA considers the requirements of almost 40 additional Movistar Plus linear services.
Telef nica Servici...
27/10/2026
Bitcentral, a news production and media workflow technology company, today announced Fusion MediaShare, a cloud-native service that helps station groups discove...
27/10/2026
Amagi, the media industry cloud company, today announced that KT Studio Genie (KTSG), the content subsidiary of KT Corporation, has completed a zero-downtime mi...
27/10/2026
Philippe Mercier, CAS, Captures Explosive Drama and Fast-Paced Action for Qu b c...
27/10/2026
Sfoor Labs releases 37 audio plugins for Windows, including five free effects
Brie Clayton October 27, 2026
0 Comments
Sfoor Labs has released Windows...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Pebble, the leading automation, content management and integrated channel specialist, is building on a successful CABSAT 2026, with major customer projects, new...
27/10/2026
Limecraft today announces version 2026.7 of its cloud-based media production and delivery platform, introducing a Workflow Library, expanded AI-assisted transcr...
27/10/2026
X5 and X20 platforms connect six locations across Santa Catarina, enabling resilient IP distribution and centralised broadcasting operations
Appear ASA (Appear...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
27/10/2026
Set in the 72 hours leading up to D Day, Pressure is a tense historical drama starring Brendan Fraser as Supreme Allied Commander Dwight Eisenhower and Andrew...
27/10/2026
Tuesday 27 October 2026
Sky announces new stand-up comedy showcase series John ...
27/10/2026
Toru , Poland
2026 FilmLight Colour Awards Winners Ceremony Sunday 8 November, 4pm
Seminar Room
Join us along with special guests to celebrate the 2026 FilmL...
27/10/2026
When the picture tells you what to doFor Lastiwka, the difference between writing a soundtrack and writing a standalone piece of music is what informs the next ...
27/10/2026
Arvato Systems Joins the Bundesverband Direktvertrieb Deutschland E. v. (BDD) as...
27/10/2026
CUPERTINO, CALIFORNIA Apple today introduced transformative updates to Apple Cre...
27/10/2026
CUPERTINO, CALIFORNIA Apple today announced the new iMac featuring the superfast M6, delivering even more performance and powerful AI capabilities in its striki...