
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 ...
18/11/2026
Key Takeaways
TeleData is building a unified DOCSIS and fiber network with Ha...
18/11/2026
Arvato Systems Expands BSI-C5 Testing
Greater Confidence in Cloud Security and Regulatory Resilience
Successful BSI-C5 Retest
Certification in accordance wi...
18/11/2026
Brendan O'Connor joins six disabled job seekers as they navigate the barriers of finding work and challenge perceptions of disability in the workplace
Begi...
18/11/2026
Poison Ink begins Friday 20 November 2026 on RT Listen and RT Radio 1
Listen ...
18/11/2026
RT Choice Music Prize
In association with IMRO and IRMA
2027 KEY DATES
Irish Album of the Year 2026 Shortlist 18th January
Irish Artist of the Year 2026 ...
17/11/2026
Multiband dynamics plug-in boasts FT1 integration
Freqport's latest plug-in combines multiband upward and downward dynamics with the company's renow...
17/11/2026
Hi-fi experts launch two pro-audio models
Berlin-based hi-fi experts Teufel Audio have recently branched out into the pro-audio world with their first pairs...
17/11/2026
A year of ComposerCloud+ for $99
EastWest's annual Black Friday Sale is already live, and new users are being offered one year of the all-encompassing C...
17/11/2026
Pick your favourite gear from 2026
The annual SOS Awards are now underway, and as always, we're asking readers to help us choose the best pro-audio rele...
17/11/2026
As part of an ongoing series production program for a German automaker, production capacity has been increased at SGL Carbon's Austrian site in Ried im Innk...
17/11/2026
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...
17/11/2026
Tuesday 17 November 2026
Sky announces major free upgrade to the Sky Glass and ...
17/11/2026
Tuesday 17 November 2026
Passion, Betrayal and Scandal: Sky Arts Reveals the Ma...
17/11/2026
Today, Apple Podcasts named Baby, this is Keke Palmer its Show of the Year, hono...
16/11/2026
Creative effects designed to encourage experimentation
Berry Effects is the brainchild of Abe and Ralph, a pair of multi-instrumentalists and audio engineer...
16/11/2026
Physics-based synth gets first major update
Anukari have just released a new version of their innovative physics-based software synth, marking the instrumen...
16/11/2026
Both versions kitted out with new tools & improvements
Hit'n'Mix have just launched the latest major version of their innovative DAW software, with ...
16/11/2026
Dynamic bands, unmasking features & new stereo tools
Launched in 2021, Eventide's SplitEQ plug-in introduced an interesting new approach to EQ, with the...
16/11/2026
Rohde & Schwarz Japan demonstrates multi-vendor ASA-ML communication with high p...
16/11/2026
November 16, 2026
Hitachi system enables proton beams to be delivered from 360 degrees around the patient, expanding treatment capacity and supporting more pre...
16/11/2026
Initiative in Malawi, Burundi, Zambia and Zimbabwe will leverage SES satellite s...
16/11/2026
Images available HERE
UKTV has announced Fleet Street (6x60'), a new period crime drama from Miss Scarlet creators Rachael New and Ben Edwards, coming to f...
16/11/2026
From Graham Norton to Olivia Attwood and Joe Marler, a new collection of hit vid...
16/11/2026
As countries gather to discuss climate targets at COP 31 this week, one question that is at the heart of debates is how to measure the environmental impact of t...
15/11/2026
Mixers, interfaces & DAW controller receive new firmware
Yamaha have just launched a trio of firmware updates that bring some powerful new functionality to ...
14/11/2026
Modular innovators introduce two guitar-based products
ADDAC System's recently introduced Four String Series makes it possible to integrate physical str...
13/11/2026
Studer-inspired 500-series PWM compressor unveiled
The HLabs range already includes a couple of Studer-inspired offerings in the form of the PRE169 and EQ16...
13/11/2026
Download Now!
To view the white paper, please enter the following details:
--
First Name* First Name
Company*
Country* Please select your countryA...
13/11/2026
Beginning today, November 13, Apple HomeView is available for purchase at Apple Store locations, on the Apple Store online, and in the Apple Store app in select...
12/11/2026
Blend between concert grand & vintage electric pianos
UVI's latest release combines a concert grand with a vintage electric piano in a single instrument...
12/11/2026
Native version of popular effects plug-in arrives
Many of the plug-ins that used to require Universal Audios Apollo interfaces or DSP accelerators have made...
12/11/2026
Four next-generation interfaces announced
Following on from the release of their new flagship Thunderbolt interfaces, Audient have refreshed the design of t...
12/11/2026
Rohde & Schwarz and Connektica showcase automated RF test systems for satellite ...
12/11/2026
Red Seat Ventures Announces Exclusive Partnership with Bryce Crawford and The Br...
12/11/2026
Airing Sunday 15 November on RT One and RT Player at 5.10pm
A new series of The Big Pet Project kicks off this Sunday, brightening our winter evenings with a...
12/11/2026
Image available HERE
Teaser available HERE
A teaser for The Cadburys (6x60') has been released, introducing audiences to the core family of George (Harry ...
12/11/2026
An island in rural MontanaJeremiah Slovarp owns Jereco in Bozeman, Montana, and teaches music technology and recording arts at Montana State University. He star...
12/11/2026
Who am I and whats an AI GP? Im Kathryn Hodgkinson, and Ive recently qualified as an Artificial Intelligence Governance Professional (AIGP), a certification awa...
12/11/2026
RT will provide extensive coverage of the European Political Community Summit in Dublin across television, radio and online on Thursday, 12 November 2026. As p...
11/11/2026
Third collaboration with Grammy-winning composer & conductor
Spitfire Audio have announced the release of Eternity, the third sample library to be created a...
11/11/2026
Eurorack experts launch vinyl-inspired plug-in
When praised Eurorackers Modbap revealed their first software effect recently, they stated it was the first r...
11/11/2026
Fraud detection and removal tools play an important role in defending advertising budgets against invalid traffic. A robust fraud tool, independently accredited...
11/11/2026
RT lyric fm is partnering with the Department of Climate, Energy, and the Envir...
11/11/2026
RT TODAY show has announced the eight finalists for its festive amateur cook competition Christmas Home Cook'.
Following the success of TODAY TV Home C...
10/11/2026
New tool humanises orchestral MIDI parts
Described as a session musician inside your DAW, VSL's latest plug-in aims to make quick work of making program...
10/11/2026
Free EQ launched alongside four major updates
PSPaudioware have just launched their latest free plug-in, along with a set of updates that bring modern OS co...
10/11/2026
Save 25% throughout November 2026
Following the recent release of Cubase 16, regular SOS contributor John Walden has announced that he will be running a 25%...
10/11/2026
Set to launch in early 2027
The latest version of Ableton's DAW software has just been unveiled, and will be making an official appearance in early 2027...
10/11/2026
IoT devices use a wide range of frequency bands below 6 GHz, from Sub-GHz LPWAN sensors to 5G and Wi-Fi systems. Lower frequencies such as 433 MHz, 868 MHz, 915...