
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 ...
09/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/04/2026
New Charging, Connectivity, and Mounting Solutions Now Available
LAS VEGAS, APRIL 8, 2026 Pliant Technologies will highlight a range of new accessories at th...
09/04/2026
As live production continues its shift to IP, the challenge is no longer adoption it's reliability. At NAB Show 2026 (Booth W2033), Media Links will demon...
09/04/2026
QuickLink, a leading provider of award-winning video production and remote guest contribution solutions, launches its new AI-powered add-on for its StudioPro p...
09/04/2026
The Hive Group has published a new white paper, No Safe Harbor: Why the FCC's Upper C-Band Auction Demands Early Action from Broadcasters ahead of NAB Sho...
09/04/2026
Saranyu Technologies today announced the renewal of its Optimizer VoD subscription with VisualOn. The announcement coincides with NAB Show 2026, taking place Ap...
09/04/2026
New technique for synthesizing branched molecules could accelerate the development of future medicines Scripps Research chemists solve a longstanding problem in...
08/04/2026
The deadline to enter the 18th Annual SVG College Sports Media Awards in association with NACDA is rapidly approaching! Submit your entries to this year's c...
08/04/2026
The Pittsburgh product helps lead more than 100 annual ESPN broadcasts as part o...
08/04/2026
Dynamic ad insertion, AI-based technologies, programmatic advertising are some o...
08/04/2026
Seven Fellows Selected for Second Year of Residency in Honor of Social Justice L...
08/04/2026
On March 7, Bad Bunny made history with his first-ever performance in Asia, taki...
08/04/2026
El 7 de marzo, Bad Bunny hizo historia con su primera presentaci n en Asia, subi...
08/04/2026
New channel strip plug-in revealed
The latest plug-in to be added to the Fuse Audio Labs line-up emulates a selection of vintage hardware units, combining c...
08/04/2026
Guitar & bass multi-effects software overhauled
Blue Cat Audio's flagship guitar and bass multi-effects software has recently received a significant upd...
08/04/2026
PanNoir mixer integration, Dolby Atmos Renderer & more
Merging Technologies have just launched Pyramix 16, the latest major update to their renowned DAW sof...
08/04/2026
Applicable Products Part number Description
QUARTZ-22-LTE (EU) Dual Port Dual SIM LTE Router (EU)
QUARTZ-COMPACT-11-LTE (EU) Single Port Compact LTE ...
08/04/2026
The September 19, 2025 YEP Newsletter highlights a group visit to the Academy Museum of Motion Pictures, where participants explored exhibits showcasing the art...
08/04/2026
The L3Harris HBTSS satellite is proven on orbit, successfully demonstrating trac...
08/04/2026
Image Credit: NASA. Artist rendering of a space communications satellite in orbit, representative of the resilient, multiband infrastructure supporting mission ...
08/04/2026
Latest evaluation validates image quality, Inertial Navigation System performance and long-range tracking in operational flight conditions....
08/04/2026
New Gracenote study finds behavioral change well underway, but trust in AI-gener...
08/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/04/2026
Integration eliminates ingest bottlenecks by ensuring content is immediately usable across cloud and hybrid editorial workflows. See it at NAB 2026.
Nevada Cit...
08/04/2026
Dalet, a leading technology and service provider for media-rich organizations, today announced the commercial availability of Dalia, its media-aware, agentic AI...
08/04/2026
Leading video software provider Synamedia today announced Senza Ignite, a cloud-based platform that transforms existing connected devices through a single firmw...
08/04/2026
Modernised architecture increases operational control and agility, while reducing cost and simplifying nationwide media transport across affiliates and news bur...
08/04/2026
Company to Feature DMX Dual Relay, High-Density 48-Channel Relay Panels, and New Private Label Power Program
LynTec, a leading manufacturer of innovative ele...
08/04/2026
Broadcasting Center Europe (BCE), a European media technology and services partner, today announces a technology partnership with BCNEXXT, a Netherlands-based c...
08/04/2026
Encompass Digital Media today announced the expansion of its Master Control Room (MCR) facility in Riga, Latvia, establishing it as one of the most advanced and...
08/04/2026
Leading video solutions provider Synamedia is back at The 2026 NAB Show with innovations that connect tomorrows audiences today. On display will be a range of t...
08/04/2026
COW Jobs: Director Needed for WWII Indie Docudrama
Brie Clayton April 8, 2026
0 Comments
Director Needed for WWII Indie Docudrama
March 17, 2026COW ...
08/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/04/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/04/2026
Marshall Electronics introduces its latest POV camera with the new CV376 Compact NDI |HX3 HDMI POV Camera at NAB 2026 (Booth C8339). Designed for versatile 4K c...