
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 ...
28/10/2026
SDI Failsafe IP Routing: Inside the UTAH-400 Series 2 Router A pure-IP routing core has no inherent fallback. When the ST 2110 network degrades, when the PTP gr...
28/10/2026
MLB Network is nearly all-day media day coverage across MLB Now, MLB Central, ML...
28/10/2026
Voyage Audio and Shure microphones are in the forefront of the sector's transition to digital
Microphones may have come late to the digital table, but they...
28/10/2026
Having long resisted the transition, broadcast audio's most fundamental element is finally entering the digital era
About 25 years ago, a microphone manufa...
28/10/2026
The Wireless Microphone Spectrum Alliance (WMSA), formed in 2025 to raise awareness with government entities about wireless microphone operations, has held meet...
28/10/2026
Telos Aliiance was at the recently held IBC in Amsterdam once again representing its brands which include Axia Audio, Omnia Audio, Telos Systems, 25-Seven Syste...
28/10/2026
SPORTEL Monaco 2026 wrapped up three days of high-level business, international ...
28/10/2026
By Ramona Flume
One of the most exciting things about the Sundance Film Festiva...
28/10/2026
By Jessica Herndon
One of the most exciting things about the Sundance Film Fest...
28/10/2026
Co-Presented by Letterboxd
BOULDER, Colorado, October 21, 2026 - The nonprofit Sundance Institute announced today the Legacy program for the 2027 Sundance Film...
28/10/2026
Two full-range, flat-response amps revealed
Moog's latest announcement may come as a bit of a surprise to many, as rather than introducing a new synth, ...
28/10/2026
Annual event returns for 12th year in Bristol, UK
Returning for its 12th year, the annual Audio Developer Conference is set to take place between 9-11 Novem...
28/10/2026
Automation updates, Dim Solo mode, multiple Marker Tracks, MIDI 2.0 support & much more
The latest version of Fender's DAW software has just arrived, de...
28/10/2026
Combines tuning & harmony generation
Klevgrand's latest release offers a simplified take on Altitude, the pitch-correction and harmony-generation plug-i...
28/10/2026
Digital Originals backs the next wave of Australian screen talent
28 October, 2026
Media releases
SBS, National Indigenous Television (NITV) and Screen Aus...
28/10/2026
Behind every jinx is a story: Comedian Ting Lim takes a light-hearted look at su...
28/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/10/2026
Sift Clips Now Searches Frame.io Footage
Brie Clayton October 28, 2026
0 Comments
Frame.io search has now been added to Sift Clips. This new feature l...
28/10/2026
Choco Film Adopts DaVinci Resolve Studio and Blackmagic Cloud for Its Editing Wo...
28/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
28/10/2026
Rise AV has announced the 23 women selected for its 2026 Elevate programme, bringing together professionals from 20 organisations across the UK, Ireland, German...
28/10/2026
MTV Oy, Finland's largest commercial broadcaster, has long been recognized for its ability to deliver fast, reliable and engaging content across news, curre...
28/10/2026
LA JOLLA, CA-The shifty hepatitis C virus (HCV) has a knack for outmaneuvering t...
28/10/2026
Digital Originals backs the next wave of Australian screen talent 28 October 2026
2026 Digital Originals cohort. Photo credit: Teniola Komolafe.
SBS, National...
28/10/2026
COW Jobs: Managing Video Editor - Remote
Brie Clayton October 27, 2026
0 Comments
Managing Video Editor
October 27, 2026COW Jobs: Production......
28/10/2026
COW Jobs: Production Manager
Brie Clayton October 27, 2026
0 Comments
Production Manager
October 27, 2026COW Jobs: Managing Video Editor -......
28/10/2026
Wednesday 28 October 2026
Claire Goodlass joins Sky as Commissioning Editor, Documentaries
Sky has appointed Claire Goodlass as Commissioning Editor, Document...
28/10/2026
Proximic by Comscore Expands Integration Across Magnites CTV Ecosystem First real-time contextual integration across Magnite SpringServe connects audience int...
28/10/2026
NVIDIA RTX Spark powers thin and light laptops built for everything that developers, creators and gamers do.
RTX Spark laptops are now available from ASUS, Del...
28/10/2026
RT is developing its next Statement of Strategy and wants to hear the views of people across Ireland the audience we serve. RT New Direction remains RT '...
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...