
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 ...
07/10/2026
Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...
08/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/09/2026
By Ramona Flume and Lucy Spicer
There's a particular kind of magic that hap...
07/09/2026
Two new full-range, flat-response cabinets introduced
HeadRush have recently introduced a pair of new full-range, flat-response cabinets designed for player...
07/09/2026
Answering questions about AI in game audio
GameSoundCon, the largest professional conference for video game music and sound design, have announced that they...
07/09/2026
New directional headset mic on show at IBC
Just ahead of this week's IBC show, DPA have announced the launch of a new directional headset that's bee...
07/09/2026
We are not building systems to replace human decision-making; we are building systems that execute our decisions at machine speed. The media companies that win ...
07/09/2026
Blackmagic Design Announces New Lower Price for Blackmagic PYXIS 6K and Blackmag...
07/09/2026
GB Labs to Unveil Core.ONE at IBC2026, an Intelligent Storage Platform for Media...
07/09/2026
Monday 7 September 2026
Freddie Meredith joins cast of SNL UK ahead of start of Season 2
Freddie Meredith Images
ZIP (3MB)
Saturday Night Live UK announces ...
07/09/2026
Monday 7 September 2026
Sky and NFTS team up to launch new routes into screen careers
Sky has today announced a new apprenticeship programme, with application...
07/09/2026
Monday 7 September 2026
Sky Sports announces most comprehensive NFL coverage to...
07/09/2026
Dolby, MainConcept, Techex and J nger Audio will showcase the industry's first demonstration of Serial Audio Definition Model (S-ADM) in a cloud-based produ...
07/09/2026
dB Broadcast will showcase APIS Hive, its software platform for designing, deploying and managing modern broadcast infrastructures, at IBC 2026.
Developed from...
07/09/2026
552,000 streams on RT Player
The historic fight, which saw Katie Taylor become...
06/09/2026
Recreates Rolands TB-303 & MC-202
BS-203 MacroAcidizer is the first virtual instrument from Born Second, and it offers a recreation of two Roland classics -...
06/09/2026
London, UK September 2026 PlayBox Technology is inviting broadcasters, OTT and FAST operators, content owners and media organisations worldwide to become De...
06/09/2026
June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...
05/09/2026
MK2 & Bass system control app improved
HEDD Audio have just launched a new and improved version of the control software that pairs with their MK2 and Bass m...
05/09/2026
The National Film and Video Foundation (NFVF), an agency of the Department of Sp...
05/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/09/2026
InSync Technology, the leading provider of premium video conversion solutions, will showcase a new generation of products at IBC 2026, designed to help broadcas...
05/09/2026
GlobalM successfully supported quattro media GmbH and World Rowing, the world governing body of the Olympic sport of Rowing, with the international distribution...
05/09/2026
LA JOLLA, CA-In recognition of his exceptional work to understand the chemistry of carbohydrates and the role they play in health and disease, Scripps Family Ch...
04/09/2026
Media organisations interested in the Media Innovation Europe 3.0 Business Innovation Synergizer (BIS) can now consult a new FAQ document providing additional a...
04/09/2026
Eluvio will demonstrate updates to its Content Fabric platform at IBC2026 (Hall 8, Stand 8.MS5, and Future Tech Zone, Hall 14, Stand 14.A58, September 11-14). C...
04/09/2026
LiveU has joined the IBC Accelerator's Smart Stories consortium, a multi-vendor initiative developing an open standard for Story Context interoperability in...
04/09/2026
Telos Alliance will demonstrate new audio observability capabilities at IBC2026 (Stand 8.D37, RAI Amsterdam, September 11-14), covering monitoring of audio heal...
04/09/2026
World Team Tennis (WTT) has announced a broadcast partnership with USA Sports, the sports division of Versant. USA Sports will air all six of WTT's live mat...
04/09/2026
Gravity Media has appointed Alex Pannell as Chief Business Officer. Pannell joins from Appear, where he served as Chief Commercial Officer. He will be based in ...
04/09/2026
By Carrie Bowden
Staff Writer
Dalet has announced new agentic workflow capabilities for Dalia, its AI platform for media organizations, ahead of IBC2026. The ...
04/09/2026
L-Acoustics has achieved EN 54 certification across a portfolio of loudspeakers,...
04/09/2026
EVS and Matrox Video have announced a technology partnership integrating Matrox ...
04/09/2026
NEP Group will exhibit at IBC2026 (Hall 7, Stand 7.B55, RAI Amsterdam, September 11-14), demonstrating software-defined production capabilities across NEP Platf...
04/09/2026
The Television Academy has awarded an Engineering Emmy to Dr. Roman Foltyn, Chief Engineer of FoMaSystems, and Curt O. Schaller for the development of the ARRI ...
04/09/2026
InSync Technology will exhibit at IBC2026 (Stand 2.C30, RAI Amsterdam, September 11-14), demonstrating its FrameFormer and InGear conversion platforms for frame...
04/09/2026
The Professional Triathletes Organisation (PTO) has signed a multi-year agreemen...
04/09/2026
Accedo and MediaKind have announced a white-label, end-to-end streaming solution for operators, combining Accedo's native application framework and cloud-ba...
04/09/2026
TAG Video Systems has announced TAG Blue, a cloud platform for shared monitoring visibility across video delivery chains, with AI-powered root-cause analysis. T...
04/09/2026
TwelveLabs has launched a video compliance platform for media organizations, inc...
04/09/2026
The Television Academy and the National Academy of Television Arts & Sciences ha...
04/09/2026
Powerful new soft synth announced
Traveler is the first software instrument to be released by KeySolutions Sounds, and it's an ambitious one! Said to co...
04/09/2026
Free virtual instrument range expanded
The latest expansion of e-instruments' free Fragments series introduces a packed-down version of the company'...
04/09/2026
Company recognised for second time
Two years after winning an Engineering, Science & Technology Emmy Award for dxRevive Pro, Accentize have been recognised ...
04/09/2026
Bilbao - 3rd September 2026 -AgileTV, a leading provider of end-to-end TV and vi...
04/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/09/2026
ACEMAGIC First to Introduce Ryzen AI Max PRO 495 AI Mini Workstation at IFA 202...