
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 ...
09/10/2026
September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026
New Sports Intelligence helps providers better unders...
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...
30/09/2026
Drawn to the many moving pieces of a live broadcast, this Los Angeles native is building a path in production management and technical operations...
30/09/2026
TNT Sports goes big for its season opener in Philadelphia, and REMI workflows at Techwood will again anchor much of regular-season production...
30/09/2026
Qvest has appointed Katlyn Alexander as CEO of Qvest in North America, effective August 16, 2026. Alexander, who previously served as COO of Qvest US, succeeds ...
30/09/2026
The American Association of Professional Baseball (AAPB) has wrapped its 2026 season, with leaguewide attendance surpassing 1.4 million for the fifth consecutiv...
30/09/2026
Veritone has announced a multi-year content licensing agreement with ATP Media, the broadcast production and distribution arm of the ATP Tour, making ATP's ...
30/09/2026
Netflix has announced it will become the exclusive home for WWE programming in Japan beginning October 1, 2026. The lineup includes Raw, SmackDown, NXT, Premium...
30/09/2026
SES and Sky have announced a new multi-year agreement for direct-to-home satellite services across the United Kingdom and Republic of Ireland, running into the ...
30/09/2026
Big Blue Marble has announced the addition of live multiview channels to its Clo...
30/09/2026
The NHRA has announced multi-year media rights agreements with FOX Sports, The C...
30/09/2026
FOX 5 Atlanta (WAGA-TV) will carry Nashville Predators games during the 2026-27 season as part of Scripps Sports' regional broadcast network for the team. G...
30/09/2026
AI was a big buzz on the IBC show floor but there weren't a ton of companies...
30/09/2026
The PGA TOUR has announced the appointment ofRyan Holcomb as Senior Vice President and Head of Original Content, according to The Hollywood Reporter. Holcomb wi...
30/09/2026
The sound will be more immersive, with improved design and more mikes on the ice and the players
The National Hockey League's season opener on Tuesday nigh...
30/09/2026
TNT Sports is dropping the puck on the 2026-27 NHL season in a big way in Philad...
30/09/2026
The International Swimming League ( ISL ) today announced the appointment of Gravity Media, global leader in live production and content and media services and ...
30/09/2026
By Ramona Flume
One of the most exciting things about the Sundance Film Festiva...
30/09/2026
Add an envelope generator to any plug-in
Sync Audio's latest creation is a handy utility plug-in that can be used to combine and modulate other effects ...
30/09/2026
All-analogue tape-style drive joins Series A
Strymon's reputation was built on their digital knowhow, so many were surprised (and intrigued) when they a...
30/09/2026
Two new expansion packs released
Sonuscore have just introduced two new expansion packs for The Pulse, its production engine instrument for modern cinematic...
30/09/2026
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...
30/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/09/2026
The An Evening with Emerson, Lake and Palmer tour brings one of rock's most iconic bands back to the stage. These performances seamlessly blend live foota...
30/09/2026
Schibsted Media, one of Norways largest and most influential digital media publishers and content producers, has invested in mixers and digital signal processor...
30/09/2026
Big Blue Marble announces the addition of live multiview channels to Cloud Video Kit, its broadcast-grade video processing platform. The feature is powered by A...
30/09/2026
Leading video software provider Synamedia today announced that Telekom Slovenije, Slovenia's largest provider of telecommunications and TV services, is open...
30/09/2026
PODCAST EXPO 2026 Recorded Using Blackmagic Design Workflow
Brie Clayton September 29, 2026
0 Comments
Conference featuring 24 sessions over two days ...
30/09/2026
IBC2026 Show Report
David Kirk September 29, 2026
0 Comments
The International Broadcasting Convention has long been Europe's equivalent of the US...
30/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/09/2026
Mavis has launched Mavis Camera 8.2, the latest release of its professional camera app for the iPhone and iPad. This update brings support for iPhone 18 Pro and...
30/09/2026
New Solution Expands Harmonic's Network Intelligence Portfolio and Brings Comcast-Developed Fiber Monitoring Technology to Broadband Operators, Providing Re...
30/09/2026
Thank you to Film-TV Video for the original article - you can view it here
It was early 1983. I had just turned 21 when I joined Hitachi Denshi's European...
30/09/2026
How to Shop Well Now starts Monday at 9.35pm
on RT One and RT Player
On the...
30/09/2026
Building on nearly a decade of co-engineering, CoreWeave has built NVIDIA compute, networking and software into a cloud purpose-built for AI that's still re...
29/09/2026
Oak View Group (OVG) has announced Cisco as an Official Technology Partner, with plans to standardize infrastructure across its venue network on Cisco solutions...
29/09/2026
SportsNet Pittsburgh (SNP) won three honors at the 2026 Mid-Atlantic Emmy Awards.
Program awards went to Bucs BP in the Sports Program Live category (produced ...
29/09/2026
The Professional Women's Hockey League has announced home openers for all 12 teams for the 2026-27 season, along with a broadcast partnership with CBC under...
29/09/2026
Manifold technologies has been recognized as a contributor to the Media eXchange...
29/09/2026
FuboTV has announced My Local Sports, allowing subscribers in select markets to add their local regional sports network (RSN) as an add-on to a Fubo Sports subs...
29/09/2026
Asian News International (ANI), a wire agency and video news provider based in India, has deployed Grass Valley's AMPP Media Operating System and Framelight...
29/09/2026
South African Broadcasting Corporation (SABC) has deployed Ikegami UHK-X600 cameras as part of an upgrade to IP-based production infrastructure. The deployment ...
29/09/2026
REMI, REMCO models will drive the bulk of the broadcaster's NHL productions ...
29/09/2026
Three years in, the facility is supporting more centralized race production, com...
29/09/2026
NBC, Peacock, and NBSN are carrying all four Wild Card series with a production ...
29/09/2026
19 Nonfiction Projects Across All Stages of Production to Receive More Than $1 million in Support as Documentary Film Program Approaches 25th Anniversary
LOS ...