
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/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 ...
07/04/2026
Starting today, Prompted Playlist is expanding beyond music to now include podca...
07/04/2026
Launched alongside piano promotion
The latest instalment in VSL's Synchron Series line-up captures the sound of a faithful copy of a Fran ois tienne Bl...
07/04/2026
Flagship sampling pad gets an update
Roland's flagship sampling pad has just received a major update that kits it out with an array of new features and ...
07/04/2026
Popular compact wireless system upgraded
Sound Devices have recently introduced a new and improved version of their compact wireless transmitter bodypacks, ...
07/04/2026
SAN JOSE, Calif. - April 7, 2026 - Harmonic (NASDAQ: HLIT) today announced it wi...
07/04/2026
FOX to Integrate Kalshi Forecasts Across FOX News Media and FOX One Platforms NEW YORK, NY (April 7, 2026) - Kalshi, the world's largest prediction market...
07/04/2026
THE GAA CHAMPIONSHIPS ARE BACK WITH A BANG
LIVE AND FREE TO AIR ACROSS ALL RT PLATFORMS
The Sunday Game and The Sunday Game Live return on Sunday 12 April
L...
06/04/2026
Like the immortal lives of vampires, some stories never really end. That's t...
06/04/2026
As podcasting continues to evolve, growth increasingly means building beyond aud...
06/04/2026
Multiband dynamics plug-in enhanced
California-based developer FSK Audio have released a significant update for their innovative multiband dynamics processo...
06/04/2026
Share official & user-created full-rig presets
IK Multimedia's latest TONEX update makes it possible for users of the popular amp and effects modelling ...
06/04/2026
Wayne, N.J., April 6th, 2026 Phantom High-Speed announces the release of PCC 4...
05/04/2026
Tackles all reported bugs!
SoundBridge have just announced the launch of a new update that introduces a couple of minor changes to their remote collaboratio...
04/04/2026
Faster, cleaner and more intuitive than ever
The control software for Flock Audio's digitally controlled patchbay systems has just been treated to an up...
03/04/2026
Iconic guitar pedals now available in plug-in form
Guitar effects experts Electro-Harmonix have teamed up with MixWave to turn a collection of their most pr...
03/04/2026
New multi-band AUv3 plug-in announced
Fred Anton Corvest (FAC) offer an extensive range of AUv3 plug-ins and iOS/iPadOS Apps, and their multiband effects pr...
03/04/2026
Just 84 units to be released in the US
Experimental synthesizer and sound-machine extraordinaires SOMA Laboratory have revealed an upcoming special-edition ...
03/04/2026
Emulates the input section of an Ampex 350
One of the latest arrivals to the Iconic Instruments range delivers a new tube preamp plug-in inspired by the cir...
03/04/2026
VIZ Media Lands Rumiko Takahashi's MAO, Sets April 4 Premiere on Hulu in the...
02/04/2026
4 - 11 April 2026
VEMIA's latest gear auction is just around the corner, and there's already a wealth of sought-after instruments and studio gear li...
02/04/2026
Little Labs emulation now available to all
The latest Universal Audio plug-in to become available outside of the company's DSP-powered UAD2 platform has...
02/04/2026
Red Seat Ventures Launches Speakeasy, a New Hosting, Distribution and Monetizati...
02/04/2026
2FM Breakfast to extend on weekday mornings from 6am to 10am
Doireann Garrihy m...
02/04/2026
RT News & Current Affairs is pleased to announce the appointment of RT Radio 1 reporter, Barry Lenihan, as Political Correspondent.
Barry has reported across...
01/04/2026
This year, Spotify celebrates the five-year anniversary of EQUAL, our global pro...
01/04/2026
Analogue-style tape splicing in the digital domain
In this era of digital recording and multiple layers of Undo, it seems that the fading art of tape splici...
01/04/2026
Latest release introduces new Orbita Engine
Zero G's latest release marks the start of a new series of libraries, as well as introducing an all-new engi...
01/04/2026
Until now, one format has largely been left behind
Warm Audio's extensive product range includes modern-day recreations of all manner of sought-after s...
01/04/2026
A piano with glass vessels for strings!
The Crow Hill Company's recently released Gong Piano offered a refreshing new take on piano libraries, harnessin...
01/04/2026
Remote Streaming Studio Condenser
Aim Audio have just revealed their latest creation, the ESSENCE RS Remote Streaming Studio Condenser, which becomes the wo...
01/04/2026
Bilbao, April 1st, 2026 - AgileTV, a leading provider of end-to-end TV technolog...
01/04/2026
UKTV today announces that Jonathan Newman has formally stepped into the role of ...
01/04/2026
Wuppertal April 1, 2026
Binghamton University Strengthens Student Run Producti...
01/04/2026
Harmonic's Media Processing Solutions Maximize Bandwidth Efficiency for Terrestrial Broadcast Delivery SAN JOSE, Calif. - April 1, 2026 - Harmonic (NASDAQ: ...
01/04/2026
Rugby fans won't miss a moment of the action this spring, with full Women...
01/04/2026
T Bluey ag teacht go RT ! Beginning on Monday 6 April 2026, Bluey will be available as Gaeilge on RT KIDSjr and RT Player. Children will be able to connect w...
01/04/2026
January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION
Douyin Users Can Now Create And Share Videos With Stun...
31/03/2026
Spotify has evolved from a streaming platform to an interactive, multiformat eco...
31/03/2026
Lastest New Universal Synthesizer System module announced
Make Noise Music have recently announced the launch of the latest addition to their New Universal ...
31/03/2026
True Stereo DynIR Engine, Virtual Load Shaper & more
Two notes Audio Engineering's Captor X reactive load box and cabinet simulator has built up a solid...
31/03/2026
31 Mar 2026
VEON Announces 2026 AGM and Board Nominees Notice of the 2026 Annual General Meeting of Shareholders of VEON Ltd.
Dubai and New York, March 31, 20...
31/03/2026
Jack Whitehall will be joined by musical guest Jorja Smith - (Show 4 - 11 April)Tuesday 31 March 2026
Jack Whitehall announced as next host of Saturday Night L...
31/03/2026
Tuesday 31 March 2026
Sky Sports announces major women's boxing deal with Most Valuable Promotions
Sky Sports and NOW will become the home of Most Valuabl...
31/03/2026
Stand #N1311 (North Hall)
April 19-22, 2026
Discover why colourists and DITs rely on Baselight and Daylight v7. Explore the latest updates about Nara, our pla...
31/03/2026
31. March 2026 News
DFT is pleased to announce that three Polar HQ scanners...