
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 ...
23/10/2026
CBS Sports will be the exclusive U.S. Spanish-language rights holder for the Con...
23/10/2026
Fubo has announced new distribution agreements for carriage of seven regional sports networks for the 2026-27 NBA season. Through those agreements, the Fubo str...
23/10/2026
CBC/Radio-Canada has selected Dalet to modernize its news operations across Canada, deploying Dalet Pyramid across the organization. CBC/Radio-Canada operates 2...
23/10/2026
EZDRM has been granted US patent 12,659,532 for a method of delivering DRM-protected content over low-latency WebRTC (Web Real-Time Communication) infrastructur...
23/10/2026
Audio-Technica has acquired a new facility in the Hollywood Media District in Hollywood, California, expanding its U.S. operations. The 8,966-square-foot, two-s...
23/10/2026
Audio-Technica (booth 514) will display its studio and live sound microphones and headphones at AES Show Nashville 2026, taking place Saturday, Oct. 31, and Sun...
23/10/2026
As regional sports networks (RSNs) decline, teams and leagues are producing more...
23/10/2026
Acceleration Community of Companies (ACC) has released The People's Games: W...
23/10/2026
GameTime Productions is using Stripe TV's Lightbox and Telestripe wireless t...
23/10/2026
CLOUDflex Broadcast has announced a direct integration with ZoomISO Cloud, Zoom's remote contribution solution for cloud-based media production systems. Dev...
23/10/2026
TMRW Sports has appointed Chris Zaber senior vice president of ticketing and venue experience as the company continues to build out its portfolio of sports prop...
23/10/2026
The BBQ World Cup & Expo has announced an investment from Wheelhouse, the content, talent and investment company founded by Brent Montgomery, and Omaha Producti...
23/10/2026
BKB Bare Knuckle Boxing and Bally's Corporation have unveiled Bally's Fi...
23/10/2026
Yahoo Sports has launched Perfect 5, a free-to-play fantasy basketball game tied to each week's marquee NBA on Prime matchups. It is designed to run alongsi...
23/10/2026
At the SVG Remote Production Summit at Techwood Studios in Atlanta, Steve Grigel...
23/10/2026
Fox Sports will broadcast game one of the 122nd World Series tonight from Milwaukee as the Milwaukee Brewers and Tampa Bay Rays square off. And with a crew of 4...
23/10/2026
Emmy-winning Culver City studio, bicoastal Game Creek Video mobile units return ...
23/10/2026
A playoff season featuring three series sweeps allows broadcast crews extra time...
23/10/2026
Creative and versatile echo effect
fedDSP have released ECO, a delay plug-in designed to cover everything from straightforward repeats to more experimental ...
23/10/2026
A FREE hypersaw synth in time for Halloween
UJAM have announced Detunicorn, a free collectable synthesizer plug-in designed to produce the thick, detuned hy...
23/10/2026
(4:10 PM) Wiesbaden, October 23, 2026. As part of the restructuring of the forme...
23/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/10/2026
Territory Group Launches Lux Meridian, New AI-Native Film and Television Product...
23/10/2026
SipRadius, widely recognized for making content processing and connectivity secure and seamless, has responded promptly to the global issue of PHP vulnerabiliti...
23/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/10/2026
A Brand New, Ultra-high-performance Remote Followspot Control System
Ayrton has released Falconer, a brand-new, ultra-high-performance remote followspot system...
23/10/2026
LA JOLLA, CA-The newly launched Wertheim Laureate Prize invites Nobel laureates ...
23/10/2026
Vegas Pro Delivers Professional Color Management and Faster Renders
Jessie Electa Petrov October 22, 2026
0 Comments
The 2027 release from Boris FX st...
23/10/2026
Blackmagic Design Announces Price Increases Due to Rising Memory Costs
Brie Clayton October 22, 2026
0 Comments
New prices across a range of products ...
23/10/2026
Berklee Welcomes Marcus Gilmore for Signature Series Performance The two-time Grammy Award-winning drummer, composer, producer, and bandleader will also lead ...
23/10/2026
Season 30 of The Voice Features a Record Number of Berklee Alumni Learn more about Dakota Cohen, Brandon Diaz, Nina Howland, and Zalissa Stewart, plus how the...
23/10/2026
Can Danny and Dani's grand plans save Christmas, or are they heading for a festive fiasco?Friday 23 October 2026
The Dyers' Caravan Park: A Merry Elfin...
23/10/2026
Friday 23 October 2026
Matchday Ready: Ella Toone & Keely Hodgkinson Star in New WSL Series
Sky Sports has launched Minus 1, a new social series that pairs th...
23/10/2026
On Friday, October 23, the highly anticipated iPhone Duo made its debut at Apple...
22/10/2026
Router Control Strategy: UCP Panels, WebPanel, and NBOSS Selecting a broadcast router control system is far more than a panel procurement exercise. The control ...
22/10/2026
BeckTV, Beam Dynamics, and Providius have announced a collaboration linking Beck...
22/10/2026
NETGEAR Enterprise has extended its Professional Services program beyond the network layer to cover AV-over-IP workflows, with NDI as the first ecosystem partne...
22/10/2026
USSI Global has promoted Ted Korte to Chief Technology Officer (CTO). The promotion follows the recent appointment of Ed McGivern as Chief Revenue Officer as th...
22/10/2026
Calrec has appointed Video Progetti, a Rome- and Milan-based broadcast distributor and AV system integrator, as its distribution partner for Italy. Video Proget...
22/10/2026
NHL Network's NHL Tonight will mark its 5,000th episode on Tuesday, Oct. 27, at 7 p.m. ET. The milestone covers episodes since the show began broadcasting f...
22/10/2026
CURE Insurance Arena in Trenton, New Jersey, has partnered with Daktronics to install a five-display centerhung system and three entrance displays. Installed th...
22/10/2026
Arkona technologies has announced native integration between its BLADE//runner AT300 platform and Bitfocus Buttons, the control system from Bitfocus. The arkona...
22/10/2026
U2 will perform at halftime of the NFL Thanksgiving Eve Game on Netflix, celebrating the band's 50th anniversary. The game, the first NFL Thanksgiving footb...