
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...
06/09/2026
June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
24/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/07/2026
Current DASDEC software enables customers to comply with the FCC's new 15-character password mandate without requiring updates
LYNDONVILLE, N.Y. July 23,...
24/07/2026
At the IBC2026 Show, SDVI will give European media organizations their first hands-on look at the next-generation Rally media supply chain management platform f...
24/07/2026
Sonnet Technologies at IBC2026
Brie Clayton July 23, 2026
0 Comments
Hero image: Sonnet Twin25G T5 Thunderbolt 5 Adapter
At this year's IBC Sho...
24/07/2026
Musora Enhances Online Music Lessons with Blackmagic Design
Brie Clayton July 23, 2026
0 Comments
Director of Production Josh Holliday details workflo...
24/07/2026
Kerry and Mayo fans Up For The Match as excitement builds in Croke Park on the e...
23/07/2026
Staines-upon-Thames, UK, 23rd, JULY, 2026 - Yospace, the trusted leader in Dynamic Ad Insertion (DAI), stitched 11.57 billion one-to-one addressable advertisem...
23/07/2026
This Spring 2026 graduate from Honolulu found a home at SoonerVision as a live-production star and is ready to enter the industry as a replay op on Prime Video&...
23/07/2026
As the AUSL postseason begins tonight, listening in to players during games enhances fan engagement for the young organization
Ballplayers chatting with announ...
23/07/2026
Snap Inc. and the Esports Foundation have announced Snap's activations at the Esports World Cup 2026 in Paris, running July 6 through August 23. For the fir...
23/07/2026
Sony has announced the FX5, a full-frame Cinema Line camera built around a newly developed fully stacked Exmor RS CMOS image sensor and BIONZ XR2 image processi...
23/07/2026
TNDV (a division of Live Media Group) provided technical production support for the Pickleball Slam 4 live broadcast from Seminole Hard Rock Live in Hollywood, ...
23/07/2026
LTN has announced it has completed satellite-to-IP migrations for more than 3,00...
23/07/2026
Daktronics has announced the winners of the 2026 DakClassroom Student Showcase, a national competition recognizing student work in media production, storytellin...
23/07/2026
The French Tennis Federation (FFT) and beIN Media Group have announced a five-ye...
23/07/2026
Clear-Com provided the communications infrastructure for the Fryderyk Awards Gal...
23/07/2026
The 2026 FIFA World Cup is, on paper, an unparalleled financial success. Total t...
23/07/2026
Standing inside HQ3 at MediaCity Studios during the FIFA World Cup 2026, it quic...
23/07/2026
Having attracted upwards of 17 billion views throughout the tourney, the broadca...
23/07/2026
Quickly creates reverse reverb effects
Low End Candy have recently released a new plug-in that offers a quick and simple way to create reverse reverb effect...
23/07/2026
New engines, resonators, effects & more
Expressive E's versatile soft synth has just been treated to an update that greatly expands its sonic range. Noi...
23/07/2026
SGL Carbon has further expanded its photovoltaic capacity at its Ort im Innkreis site in Austria. With the commissioning of new PV carports, the sites solar sys...
23/07/2026
NITV launches new By Mob For Mob series in partnership with NRMA Insurance
23 July, 2026
Media releases
National Indigenous Television (NITV) has launched ...
23/07/2026
Rohde & Schwarz presents new software for three-phase power analysis on MXO seri...
23/07/2026
In our latest blog, Laura Rognoni explores how the launch of Play Snooker reflects a wider shift in sports economics - from monetising peak broadcast audiences ...
23/07/2026
Download Now!
To receive a short case study showcasing Vivid Broadcast's audio setup, please enter the following details:
--
First Name* First Name ...
23/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/07/2026
Witbe brings its AI-native testing and monitoring infrastructure to Amsterdam: demonstrations on real devices, a peer-reviewed technical paper in the conference...
23/07/2026
Quickplay, Caretta Research, Evergent, and Yospace have announced that the renowned IBC Pride Happy Hour will once again bring the vibe and fun back to IBC on F...
23/07/2026
At IBC2026, Interra Systems will present this year's focus: operational AI at scale for QC, monitoring, and captioning workflows. The industry has moved pas...
23/07/2026
Illusionfx is finally coming!
Alex Perea July 23, 2026
0 Comments
The new website is now live to mark the occasion.
Since the last update, feedback h...
23/07/2026
Evergent (5.A86) will showcase its Agentic Revenue Orchestration Platform for streaming services, sports leagues, pay-TV operators at IBC2026 (RAI Amsterdam, 11...
23/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/07/2026
David Dvir, 2D founder (left), Sundeep Reddy (center), and Jean-Marc Bouchut (right), both of Zeiss...
23/07/2026
Screen Australia announces new national documentary accelerator program 23 July 2026
Screen Australia has today announced the Above the Line Documentary Accel...
23/07/2026
At this week's AI Summit in San Francisco, South Korean President Jae Myung Lee and some of the country's top business leaders and researchers are meeti...
23/07/2026
X-Rite Pantone and Fashion Institute of Technology (FIT) Partner to Advance Digi...
23/07/2026
Thursday 23 July 2026
New Samsung Galaxy Foldable range available now to pre-order on Sky Mobile
Sky Mobile, the award-winning network voted this year by Expe...
23/07/2026
Thursday 23 July 2026
Jason Statham leads Sky Original action thriller MUTINY in explosive new trailerTurn on cookies to view this content. Go to Privacy optio...