
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 ...
09/10/2026
September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026
New Sports Intelligence helps providers better unders...
08/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/10/2026
Marshall Electronics, a globally recognized provider of high-performance video solutions for broadcast, streaming, AV and professional production, will exhibit ...
07/10/2026
New all-in-one scoring package incoming
EastWest's latest release brings together an eclectic mix of sampled instruments in an attempt to provide compos...
07/10/2026
Granular process features graph-based sequencer
The latest addition to Baby Audio's ever-expanding collection of plug-ins is a new time-bending effect b...
07/10/2026
Iconic inventor & designer passes away
Mike Beigel, the inventor and designer who co-founded Musitronics, has sadly passed away aged 79. Mike was responsibl...
07/10/2026
Combines filtering & wavefolding
Kreuzberg Audio have recently introduced a plug-in that combines filtering and wavefolding in a way that allows the two pro...
07/10/2026
Recreates the ultra-rare Gleeman Pentaphonic
Cherry Audio's latest soft synth faithfully recreates the Gleeman Pentaphonic, a vintage synth that was kno...
07/10/2026
Statement on the passing of Richard Morecroft
7 October, 2026
Media releases
Statement by SBS Managing Director, Jane Palfreyman
SBS is deeply saddened...
07/10/2026
The National Film and Video Foundation (NFVF) is pleased to announce the extensi...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Sacramento Production Services has completed a major wireless audio overhaul at Sutter Health Park, current home of the Athletics (A's) professional basebal...
07/10/2026
Cobalt Digital to Bring End-to-End ST 2110/IPMX Solutions and Practical Tools to...
07/10/2026
Sanbila Lets Video Editors Import Rushes From a WeTransfer Link and Edit Them Fr...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
UK-based broadcast engineer Andrew Kemp has chosen a dhd.audio SX2 and XS3 as the basis of a transportable media-training resource. With a quarter-century of ex...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/10/2026
Cobalt Digital to Bring End-to-End ST 2110/IPMX Solutions and Practical Tools to NAB Show New York
Highlights include complete path from SDI to IP, C-band tran...
07/10/2026
Deerstalker Pictures The Exorcism of Nixie Shot With Blackmagic Cameras
Brie Clayton October 6, 2026
0 Comments
Fantasy series relied on Blackmagic ca...
07/10/2026
Nevion announces Providius NVRT integration with eMerge switches for expanded br...
07/10/2026
DriveShelf - A Filmmaker's Mac App for Finding Footage on Unplugged Drives
Brie Clayton October 6, 2026
0 Comments
DriveShelf for Mac catalogs eve...
07/10/2026
COW Jobs: Cinematographer, Video Editor - Baltimore, MD
Brie Clayton October 7, 2026
0 Comments
Cinematographer / Video Editor
September 23, 2026 ...
07/10/2026
Behind the Scenes at Berklee Homecoming 2026 Follow Marley Striem BM '25 behind the scenes as she manages a team of students and liaises with artists duri...
07/10/2026
Berklee College of Music and Berklee Valencia Named to Billboards 2026 List of T...
07/10/2026
At a Microsoft event in San Francisco on Wednesday, Jensen Huang and Satya Nadel...
07/10/2026
The six-part series will launch on free-streaming service U in 2027.
A set of first look images have been released for The Cadburys (6x60'), the upcoming s...
07/10/2026
Wednesday 7 October 2026
Sky Sports to broadcast England's ODI tri-series a...
07/10/2026
When the EBU and AMWA launched the Joint Task Force on the Dynamic Media Facility (JT-DMF) at IBC2025, the DMF was largely a concept. Twelve months on, the conv...
07/10/2026
Even the Digital Government Needs a Plan B
AFCEA study National Security Ecosystem 2030 presented at the Bonn IT Dialogue. Arvato Systems / AFCEA Bonn e. ...
07/10/2026
This development extends certification beyond individual Retail Media Networks a...
07/10/2026
RT has been informed that, as stated in Budget 2027, the Government has made the decision to cut the agreed public funding of RT by 20 million for 2027.
In ...
07/10/2026
Undercover filming shows add-on treatments with potential safety concerns on sal...
07/10/2026
Join Emma Doran, Justine Stafford, Killian Sundermann, Se n Burke and Michael Fry on RT 2 and RT Player tomorrow at 10.30pm
A host of guest stars include Siob...
07/10/2026
Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...
06/10/2026
A response to Mark Turner and the SVG AI Innovation Lab
SVG AI Innovation Lab Program Director Mark Turner's How Broadcast Sports Can Apply the Newsroom S...
06/10/2026
Cobalt Digital will exhibit at NAB Show New York 2026 (Booth 226, Javits Center, October 21-22), demonstrating its ST 2110/IPMX product line alongside solutions...