
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 ...
19/10/2026
New compact interface packs in eight mic pres
MOTU's latest audio interface manages to pack a generous amount of connectivity into compact portable encl...
19/10/2026
Eurorack string range gains three new modules
ADDAC System have just announced the launch of three new modules for their innovative Four Strings Series, a s...
19/10/2026
Drum modules now available as pre-built system
Erica Synths have just introduced a new bundle that brings their praised Eurorack drum modules together into ...
19/10/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...
19/10/2026
Slow internet leaves millions apologising for their connectionMonday 19 October 2026
Brits are saying sorry, my Wi-Fi is playing up almost twice a week
Brit...
19/10/2026
The future of quantum technologies will depend not only on scientific breakthroughs, but on whether nations, sectors and communities are given a meaningful voic...
18/10/2026
October 18 2026, 21:30 (PDT) Dolby Cinema Expands Its India Footprint with Kera...
17/10/2026
Two new kit options introduced
Roland's entry-level V-Drum series has just been refreshed, gaining two new kit options that promise the best balance of ...
16/10/2026
Standalone calibration, automatic bass management & digital I/O
The ARC Studio was a significant release for IK Multimedia, and was praised for offering a c...
16/10/2026
Classic compressor returns in 1U form
There are few pieces of gear that have achieved the status held by the SSL Bus Compressor, and it's now officially...
16/10/2026
Latest cinematic instrument unveiled
Zero-G say that their latest creation isn't your typical sample library or collection of instruments, but rather a ...
16/10/2026
Real-time MIDI orchestrator updated
Forma Labs Audio have recently launched a significant update that brings some powerful new features to their real-time M...
16/10/2026
Friday 16 October 2026
The Alessia Cup, powered by Sky, returns with Lioness an...
16/10/2026
Friday 16 October 2026
iPhone Duo now available to pre-order with savings of up...
16/10/2026
Republic of Ireland defenders back their future careers while nominating local c...
16/10/2026
Friday 16 October 2026
LOITV arrives on Sky Glass and Sky Stream
Sky customers in the Republic of Ireland can now enjoy the pulsating SSE Airtricity Men's...
16/10/2026
Nominations Announcement - RT Radio 1 Folk Awards
Celebrating the very best in folk music in Ireland from the past year
Awards event LIVE in Vicar Street and...
16/10/2026
RT has today announced that MaeBee, a brand-new animated series, will premiere ...
15/10/2026
Latest AUv3 plug-in announced
Fred Anton Corvest's latest AUv3 plug-in has arrived, kitting iPad, iPhone, macOS and Apple Vision Pro users out with a po...
15/10/2026
A new take on tape-stop effects
The latest plug-in from Cableguys offers an interesting new take on the classic tape-stop effect, and also promises to make ...
15/10/2026
Combines four independent processing blocks
RYK Modular have just introduced a new Eurorack module which houses a set of four effects blocks that can be com...
15/10/2026
FOX AdStudio Advances to Next Phase as Leading Agency Partners Put Agentic Adver...
15/10/2026
Arqiva accelerates Middle East growth with landmark Gulfsat Satellite Services a...
15/10/2026
Beginning Friday, October 16, at 1 p.m. BST, customers can pre-order iPhone Duo ...
15/10/2026
The Galway Bay Murders starring Kate Mulgrew, Colm Meaney, John Connors, India Mullen, Jack Rowan and Clinton Liberty will air on Sunday 8 November 2026 on RT...
14/10/2026
Staines-upon-Thames, UK, 13, October, 2026 - Yospace, the trusted leader in Dynamic Ad Insertion (DAI), has been selected by Court TV to monetize its ad-suppor...
14/10/2026
Tape simulator plug-in gains native version
Universal Audio's recreation of the Empirical Labs FATSO has just become the latest of the company's plu...
14/10/2026
Bitwig Studio now integrates with Rekordbox
Bitwig have joined forces with AlphaTheta to bring together two different areas of modern music creation: DJing ...
14/10/2026
New granular synthesis plug-in revealed
Delta Sound Labs have just launched a new granular synthesis plug-in that allows composers, producers and sound desi...
14/10/2026
Mastering complex signal environments: Rohde & Schwarz launches new R&S ADD607 c...
14/10/2026
As our world becomes increasingly digital, demand for electricity is surging while the transition to cleaner energy systems is creating new challenges. Yet desp...
13/10/2026
Two new MPE-capable libraries announced
Sonora Cinematic's The Founders Locker line-up has just gained two new additions: Penombra Celli and Penombra Vi...
13/10/2026
Debut offering in new oneTHNG plug-in series
Modular synth experts Modbap have just announced the launch of Fidelity Theory, a new creative effect that mark...
13/10/2026
Last week, SGL Carbon celebrated the expansion of its production capacity at its St. Marys site (USA). SGL Carbon has invested around USD 100 million in the exp...
13/10/2026
Rohde & Schwarz presents unique R&S NTS transfer standards for RF power traceabi...
13/10/2026
New Football and Multi-Sport Memberships join All Sky Sports, with minimum-term prices starting at £19.99 a monthTuesday 13 October 2026
NOW gives sports fans ...
13/10/2026
Tuesday 13 October 2026
Same beach, new era! The official Baywatch trailer has ...
13/10/2026
CUPERTINO, CALIFORNIA Apple today announced Apple Home Collection, a new lineup ...
13/10/2026
CUPERTINO, CALIFORNIA Apple today announced the next generation of Apple TV 4K, ...
13/10/2026
CUPERTINO, CALIFORNIA Apple today introduced Apple HomeView, designed to be cent...
13/10/2026
CUPERTINO, CALIFORNIA Apple today announced HomePod mini 2, featuring Siri AI, g...
12/10/2026
New features added alongside NKS support
10K Audio's real-time loop-based instrument has just been treated to a free update that brings a wealth of new ...
12/10/2026
New phone-mounted mic captures spatial audio
Sony have just introduced a new mic that allows content creators to capture, edit and export spatial audio from...
12/10/2026
Fully playable mini instrument announced
Originally launched in 1968, the Stylophone was a hugely popular instrument, and despite being marketed as a beginn...
12/10/2026
Eight essential keys instruments in one
Song Athletics have just released a new sample library that brings an assortment of essential piano, keys and synth ...
12/10/2026
Siretta exhibited at NECA 2026 in Las Vegas, showcasing its SNYPER cellular network analysers and antenna solutions to electrical contractors and installers fro...
12/10/2026
Electricity underpins every one of the 17 UN Sustainable Development Goals (SDGs) from healthcare and education to economic growth, climate action and digital i...
12/10/2026
Key Takeaways
Cablenet has selected Harmonic's cOS virtualized broadband p...
12/10/2026
Fox Corporation Executives to Discuss First Quarter Fiscal 2027 Financial Result...