
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!
Europe Stories
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 ...
21/04/2026
Five years ago, Spotify arrived in Pakistan, opening a new chapter in the country's music scene. Since then, local listeners have explored across genres, ge...
21/04/2026
Since its launch in 2020, RADAR has been our program for spotlighting emerging artists around the world. This year marks the sixth edition of RADAR Spain, our o...
21/04/2026
Offers compact wireless solution for pedalboards
Taiwanese audio brand Cloudvocal have announced the availability of a new pedalboard-friendly wireless syst...
21/04/2026
Latest hybrid sampling/synthesis instrument arrives
Arturia's Augmented series offerings rely on a mixture of sampling and synthesis, allowing users to ...
21/04/2026
Rohde & Schwarz to host Power Electronics Online Conference From Design to Vali...
21/04/2026
Tuesday 21 April 2026
A first look at The Cathy Newman Show, live from 27 April
Everything you need to know
Sky News has announced The Cathy Newman Show, a m...
21/04/2026
Tuesday 21 April 2026
Sky Sports to make ICC Women's T20 World Cup 2026 available to all
The opening matches for all the home nations plus final will be a...
21/04/2026
Comscore Continues Building Momentum in Local Measurement Through New Agreements...
21/04/2026
Summer is nearly here and Super Garden is returning to our screens to spark some gardening inspiration. The new series kicks off on Thursday 23 April at 7pm on ...
20/04/2026
A song that captures a moment can feel like magic. But when you uncover the story behind it-who made it, what inspired it, and the meaning woven into the lyrics...
20/04/2026
Ultra-compact 32-bit recorder set for launch
Deity Microphones will soon be launching a new 32-bit six-track recorder that's been designed with producti...
20/04/2026
Uncoming lightweight shotgun mic announced
Production-sound experts Lectrosonics have recently announced the upcoming launch of a new lightweight shotgun mi...
20/04/2026
New 20-minute documentary explores iconic preamp
In 2025, Focusrite commissioned a new short-form documentary with filmmaker Chris Mayes-Wright - the direct...
20/04/2026
Turn quick sketches into real drum grooves
Sampleson have been experimenting with assitive production tools recently, and their latest creation aims to make...
20/04/2026
Rohde & Schwarz rolls out its full ARDRONIS counter UAS suite in a demonstration...
20/04/2026
Thomas Valter Director of Product Management, RTW
March 26, 2026
For users of the classic TouchMonitor, one obvious question is: what does the TMxCore offer...
20/04/2026
Fox Corporation Executives to Discuss Third Quarter Fiscal 2026 Financial Result...
19/04/2026
Now available in VST3, AU and AAX formats
Waves have recently released an update that extends their vocal-alignment plug-in's capabilities to all DAWs -...
19/04/2026
Wuppertal April 19, 2026
Riedel's SimplyLive Solution Powers Centralized V...
19/04/2026
Wuppertal April 19, 2026
Bridge Digital and Riedel Build Campus Wide ST 2110 N...
19/04/2026
Wuppertal April 19, 2026
Riedel Showcases Next Advances in IP-Based Production at NAB 2026MediorNet HorizoN ST 2110 MultiViewer App, SmartPanel Commentary Con...
19/04/2026
Harmonic's Cloud-Native VOS Media Software Lowers Costs by Unifying Media Playout to Delivery on a Single Platform SAN JOSE, Calif. - April 19, 2026 - Harmo...
18/04/2026
Free software mixer now in public beta
Blackmagic Design are best known for their high-end video hardware and DaVinci Resolve editing software, but the latt...
17/04/2026
Versatile ribbon mic kit revealed
The latest arrival to the AEA line-up brings together three contrasting models from their Nuvo range, delivering a versati...
17/04/2026
Revealed following sold-out MPG Awards ceremony
Following another sold-out MPG Awards ceremony at The Troxy in London, the MPG have released a full list of ...
17/04/2026
17 Apr 2026
VEON to Release 1Q26 Earnings Update on May 13, 2026 Dubai and New York, April 17, 2026 - VEON Ltd. (Nasdaq: VEON), a global digital operator (toge...
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
RTS Ireland Awards / Gradaim RTS 2026 Winners Announced
Awards hosted by RT | Presented by Louise Duffy & Aisling Bonner
Thursday, 16 April 2026 | Dublin Roy...
16/04/2026
Bookish is created, written by and starring Mark Gatiss, with series one available on Sky, Virgin Media and NOW
Praise for series one:
Daily Mail - 5****
The...
16/04/2026
Fox Corporation Names Amazon Web Services its Preferred AI Cloud Provider New York, NY and Los Angeles, CA - April 16, 2026 - Fox Corporation (Nasdaq: FOXA, F...
16/04/2026
The search for Ireland's newest country music star takes place live on Frida...
15/04/2026
From immersive storytelling to laugh-out-loud comedies, podcasts are booming in ...
15/04/2026
Books have always moved with us, whether tucked in our bags or humming in our he...
15/04/2026
For many artists, independent venues are where music careers begin and fan communities take shape. Independent venue operators work hard every day to keep local...
15/04/2026
From gripping thrillers to poignant memoirs, the 21st century has had no shortage of unforgettable books. To celebrate the standout storytelling of our modern e...
15/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...
15/04/2026
Includes eight free UAD plug-ins
Universal Audio's latest bundle brings together a selection of their renowned plug-ins and virtual instruments, and is ...
15/04/2026
Maximum uptime for broadcasters: Rohde & Schwarz launches R&S BroadcastShield at...
15/04/2026
aconnic AG (ISIN: DE000A0LBKW6), Munich, announces the market launch of the ACCE...