
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 ...
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...
01/05/2026
January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...
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...
03/02/2026
Tagboard, a modern, interactive graphics system for news, sports, and entertainm...
03/02/2026
Studio Network Solutions (SNS) announces the launch of Trio, a new S3-compatible cloud storage service fully integrated with EVO for media backup, archival, and...
03/02/2026
50 Production Trucks at center of 160 U.S.-based productions...
03/02/2026
Nielsen, which specializes in audience measurement, data, and media intelligence, announces that it is piloting a new methodology enhancement to more accurately...
03/02/2026
Appear's X Platform will be used by NBC Sports to deliver video compression, satellite modulation and transport stream aggregation for its production of the...
03/02/2026
Behind The Mic provides a roundup of recent news regarding on-air talent, includ...
03/02/2026
NHL Network announces its comprehensive programming schedule for the upcoming Winter Olympic Games, underscoring the highly anticipated return of NHL players to...
03/02/2026
NBC Sports has chosen Canon to deliver 115 Canon UHD broadcast lenses for its production of the 2026 Winter Olympics and Paralympics. Canon will also send suppo...
03/02/2026
Audio-Technica equipment will be used by NBC Sports to deliver much of its audio capture requirements across all sporting venues for its production of the 2026 ...
03/02/2026
NBC Sports will use Cisco to deliver AI networking technology for its all-IP production of the 2026 Winter Olympics and Paralympics, including the deployment of...
03/02/2026
NBC Sports will utilize Chyron PRIME CG to produce live broadcast graphics to display names, athlete information, scores, statistics, leaderboards, headshots an...
03/02/2026
NBC Sports will utilize Grass Valley to deliver advanced signal conversion, rout...
03/02/2026
NBC Sports will utilize Planar to deliver leading-edge fine pixel pitch LED video wall technology for its production of the 2026 Winter Olympics and Paralympics...
03/02/2026
Taking place in two venues, the 2026 production celebrates the 150th Anniversary of the Super Bowl of Dogs'
When the Westminster Kennel Club Dog Show conc...
03/02/2026
For the indoor production, NEP Specialty Capture has mounted a 100-ft. overhead ...
03/02/2026
MTVG Edge, the production-services supplier's software-based production solu...
03/02/2026
In the league's second year, new partnerships enhance broadcast quality for ...
03/02/2026
Rocket Surgery will showcase the combined creative strength of Ross Video, with ...
03/02/2026
NBC Sports will utilize Sony Electronics to deliver imaging, monitoring, and tec...
03/02/2026
SMT will provide TVI (broadcast television interface) support services for figur...
03/02/2026
Spotify's annual Best New Artist celebration returned to Los Angeles last ni...
03/02/2026
The smash-hit series The Hospital: In the Deep End returns to shine a spotlight ...
03/02/2026
FoMa Antares: Redefining Camera Stabilization for Modern ProductionsIn high-end broadcast and cinematic environments, precision, reliability, and flexibility ar...
03/02/2026
Viper Shield's robust phase of flight-testing production representative hard...
03/02/2026
Countries throughout the Indo-Pacific have made the ability to defend their people and sovereign borders a top priority, but no single nation can monitor every ...
03/02/2026
U.S. Marine loads a round in an 81 mm mortar system during an exercise. (Credit: U.S. Marines)...
03/02/2026
9905MPx Card features unprecedented level of density with four independent signa...
03/02/2026
Champaign, IL - November 15, 2021 - Cobalt Digital, announced today that three of its products have received 2021 NAB Show Product of the Year Awards. Cobalt, ...
03/02/2026
Cobalt is pleased to confirm that Log4j vulnerability does NOT affect ANY Cobalt products including the HPF-9000 frame.
Given the recent concerns regarding wi...
03/02/2026
Software-based embedding and de-embedding solution will be highlighted at NAB 20...
03/02/2026
Series developed to fill an industry need.
Champaign, IL April 13, 2022 Cobalt Digital will introduce a new series of BlueBox Group (BBG) EO/OE 12G mini...
03/02/2026
Company receives Best in Shows from Next TV and TVB Europe, and two Product of the Year awards from NAB
Champaign, IL - May 6, 2022 - Cobalt Digital Inc. head...
03/02/2026
IBC Preview - IBC Stand 10.B44Journalists: Click to visit Cobalt
Cobalt will al...
03/02/2026
IBC Stand 10.B44Journalists: Click to visit Cobalt
Dr. Ciro Noronha, CTO, tapped as a panelist and speaker by many - and then there's the party!
Amsterda...
03/02/2026
IBC Stand 10.B44Journalists: Click to visit Cobalt
Growth Drives Cobalt Digital to Promote Dr. Ciro Noronha to CTO, and Appoint Anthony Tan as Director of Sale...
03/02/2026
IBC Stand 10.B44Journalists: Click to visit Cobalt
Dr. Ciro Noronha, CTO, tappe...
03/02/2026
Manufacturer plans also include solutions that provide a path to the cloud and redundancy updatesCABSAT Stand S1-I42Journalists: Click to visit Cobalt
Dubai - ...
03/02/2026
Award-Winning Product Portfolio is Being Presented on Smart Video Group Stand, and Company's Berend Blokzijl is Scheduled to Share RIST Insight on Innovatio...
03/02/2026
NEW Location IBC Stand 10.F42 Same Hall, NEW StandJournalists: Click to visi...
03/02/2026
TVBEurope spoke with our very own Dr. Ciro Noronha about RIST and more.Reliable Internet Stream Transport (RIST) is growing in popularity for contribution and d...
03/02/2026
NEW Location IBC Stand 10.F42 Same Hall, NEW StandJournalists: Click to visi...
03/02/2026
NEW Location IBC Stand 10.F42 Same Hall, NEW StandJournalists: Click to visit CobaltCatch Cobalt's Blue WAVE of Innovation in a New LocationHighlights t...
03/02/2026
Cobalt Digital Scores Best of Show Awards at IBC 2023 from TVB Europe and TV Technology
Amsterdam, 2 October 2023 - Cobalt Digital has announced that it has w...
03/02/2026
NAB NY Booth: 1126Cobalt Digital to Present New PACIFIC Ultra-Low Latency 4K HEVC Encoder / Decoder Platform at NAB NY 2023Cobalt's NAB NY Plans Have Live P...
03/02/2026
Cobalt's Inter BEE Line-up Targets 4K 2110 Processing with INDIGO Option and Offers High-Density Routing Solutions with New WAVE SeriesNew Mini Converters a...
03/02/2026
Cobalt Digital's NAB 2024 Plans Include a Simplified Path to ATSC 3.0
Other Highlights include Enhanced IP Multiviewers, Expanded Router and Control Panel ...