
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 ...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
04/07/2026
April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...
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 ...
16/04/2026
Appear ASA (OSE: APR) will announce three additions to its X Platform at NAB Sho...
16/04/2026
Harmonic has announced that CentralCast, a centralized master control facility for U.S. public media, has deployed Harmonic's XOS Advanced Media Processor t...
16/04/2026
Interra Systems has announced that Encompass Digital Media has integrated its BA...
16/04/2026
Grass Valley will demonstrate its Media Infrastructure capabilities at NAB Show 2026 (Booth C2408, Central Hall), bringing routing, signal processing, and orche...
16/04/2026
As preparations ramp up for the FIFA World Cup 2026, Verizon has outlined a sweeping connectivity and infrastructure initiative that will underpin broadcast ope...
16/04/2026
Advanced Image Robotics (AIR) has announced its selection for the 2026 MLS Innovation Lab. AIR will work with MLS clubs, players, and executives on automated vi...
16/04/2026
JWX has announced the acquisition of True Anthem, an AI-powered social publishin...
16/04/2026
Jomboy Media and FuboTV Inc. have launched the Jomboy Media Channel, a 24/7 channel available to FuboTV base plan subscribers. The channel, timed to the start o...
16/04/2026
Wave Central, a Domo Broadcast Company (Booth C2820), and EVS Broadcast Equipmen...
16/04/2026
Tata Communications and Formula 1 have released Race Before the Race, the firs...
16/04/2026
DPA Microphones has released a firmware update for its N-Series Digital Wireless...
16/04/2026
Sony's Live Stage at NAB Show 2026 is the place to hear directly from the content creators, end users, and technology experts who are pushing boundaries in ...
16/04/2026
Perfect Game and Youth Prospects have announced a partnership covering broadcast...
16/04/2026
National Collegiate Rugby (NCR) has announced a media rights partnership with Al...
16/04/2026
Audio-Technica has announced two new mid-side (MS) stereo broadcast microphones:...
16/04/2026
PSSI Global Services has announced the acquisition of Beagle Networks, a provider of IT infrastructure and onsite technical support for media and enterprise cus...
16/04/2026
Blackmagic Design has released Blackmagic Camera for iOS 3.3, a free update available now from the Apple App Store. The update will be demonstrated at NAB Show ...
16/04/2026
As live sports production continues to expand across linear, digital, and in-ven...
16/04/2026
Part of an infrastructure upgrade, the recently constructed spaces accommodate n...
16/04/2026
NBC has added NEP's Supershooter 11, which only just came online in time for...
16/04/2026
At Spotify, we want your experience to feel intuitive and personal across every moment of the day. Whether you're streaming your favorite playlist while you...
16/04/2026
Vintage broadcast experts release second plug-in
Telsie T is the second plug-in to be released by SonicWorld, a German audio company who specialise in servi...
16/04/2026
Compact unit offers hands-on plug-in control
Softube have just announced the launch of their latest hardware unit, the Flow Studio. Housed in a compact desk...
16/04/2026
Use any VST3 plug-in on immersive audio
Fiedler Audio have just released a powerful new plug-in wrapper that brings full VST3 processing to Dolby Atmos and ...
16/04/2026
Analysis plug-in gains enhanced frequency readouts
Nugen Audio's real-time analysis plug-in has just received a significant update that introduces some ...
16/04/2026
Recording & Music Technology Show
Sound On Sound are pleased to announce a new recording and music technology exhibition taking place in London on Saturday ...
16/04/2026
SBS reveals all-star alumni team to celebrate 70 years of the Eurovision Song Co...
16/04/2026
For decades, understanding the physical world from space has required a trade-of...
16/04/2026
The integration accelerates demographic audience delivery across local markets a...
16/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
16/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
16/04/2026
Telestream Cloud Services, including Vantage Cloud, UP, and SENTRY monitoring tools, are now optimized for OCI, powering flexible multi-cloud media orchestratio...
16/04/2026
Fox Corporation (Nasdaq: FOXA, FOX; FOX or the Company ) today announced a strategic collaboration with Amazon Web Services (AWS), naming AWS as its preferre...
16/04/2026
Triveni Digital, a trusted leader in ATSC 1.0 and 3.0 service delivery, data broadcasting, and quality assurance solutions, today announced an ISDB-Tb capabilit...
16/04/2026
Synamedia and SoFast announce strategic go-to-market partnership to accelerate FAST, pay-TV, and VOD
At the NAB Show 2026, Synamedia and SoFast are announcing ...
16/04/2026
Showcases New, Open-Standard IP Solutions Across Its Portfolio, From Production to Playout
Imagine Communications is marking a decade of leadership in ST 2110 ...
16/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
16/04/2026
Sportway Media Group, a world leading AI-automated sports production company and Broadcast Solutions, a leading system integrator and provider of innovative sol...
16/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
16/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
16/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
16/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
16/04/2026
AJA Enters into Agreement to Acquire Video Encoding Software Company Comprimato
Brie Clayton April 15, 2026
0 Comments
Deal will expand AJA's video ...
16/04/2026
Deity Announces PR-4 Compact Field Recorder with Pre-Orders Launching April 14
Brie Clayton April 15, 2026
0 Comments
Deity Microphones today announce...