
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
11/12/2025
Dalet, a leading provider of cloud-native, end-to-end media workflow solutions, ...
09/12/2025
2025 Sports Broadcasting Hall of Fame: Pam Oliver, Sideline Icon Who Redefined t...
09/12/2025
SVG Summit 2025 Technology Exhibits Preview, Part 2By Jason Dachman, Editorial Director, U.S.
Tuesday, December 9, 2025 - 7:17 am
Print This Story | Subscr...
09/12/2025
SVG Summit 2025 Preview: Cloud Production Workshop Spotlights Live and Non-Live ...
09/12/2025
Next-generation content protection: Multi-technology security is integral to com...
09/12/2025
CBS Sports Provides One-of-a-Kind Production' for UEFA Champions League Cro...
09/12/2025
Spanish Professional Basketball League Relies on NETGEAR AV, MAM Tech for Seamle...
09/12/2025
SVG Sit-Down: St. Thomas's Mike Gallagher and Casey Eakins on the Tommies...
09/12/2025
Free Registration for the 2025 SVG Summit Closes Today at 5 p.m. ET!After the deadline, tickets will cost $150 to attend the eventBy SVG Staff
Tuesday, Decemb...
09/12/2025
University of St. Thomas Ushers in Division I Era With New Arena and a Broadcast...
09/12/2025
For decades, music videos have done more than just accompany a song; they've shaped style, started conversations, and helped us fall in love with our favori...
09/12/2025
For decades, customers have turned to L3Harris capabilities in electronic warfar...
09/12/2025
L3Harris propulsion systems enable agile maneuvering and resilience for U.S. spacecraft, supporting national security and mission success in the evolving space ...
09/12/2025
L3Harris Technologies' imaging and sounding instruments will play a critical...
09/12/2025
LOS ANGELES James Shears has joined ThinkAnalytics as senior vice president, advertising, tasked with leading global strategy and commercial expansion of the co...
09/12/2025
VIENNA, Va. The Media Institute, a nonprofit, nonpartisan organization specializing in communications policy and the First Amendment, has named Kathleen Kirby o...
09/12/2025
Throughout its century-plus existence, the motion picture industry has had to fight battles on multiple fronts to protect its content from piracy. From protecti...
09/12/2025
NEW YORK Fueled by football season, ad supported TV viewing in Q3 peaked in September, representing 74.7% of overall TV viewership in that month, per Nielsen...
09/12/2025
LYNDONVILLE, N.Y. Digital Alert Systems has introduced the DAS3-DC-PS, a new DC power supply option for its DASDEC-III emergency alert system. Designed to meet ...
09/12/2025
Advanced Systems Group, LLC (ASG), a technology and services provider for media creatives and content owners, announced the appointment of Macky Beheshti as Dir...
09/12/2025
Triveni Digital and Device Solutions Inc today announced that the United States Patent and Trademark Office granted them a new patent for their novel ATSC 3.0 r...
09/12/2025
ThinkAnalytics, the global leader in AI-powered data analytics for TV and streaming, today announced the appointment of James Shears as Senior Vice President of...
09/12/2025
European data management specialists appointed as SingleStore champion partner, bringing unified real-time transaction, vector and analytics capabilities to org...
09/12/2025
Broadcast Solutions, the leading systems integration group, has launched a new business, aimed at providing consultancy and design services across the media ind...
09/12/2025
WASHINGTON The Federal Communications Commission's Media Bureau has once again delayed implementation of sponsorship identification requirements for foreign...
09/12/2025
WASHINGTON #GALSNGEAR has announced two major leadership retreats in early 2026 that the group said are designed to equip women in media, entertainment, and tec...
09/12/2025
WASHINGTON With a Dec. 15 deadline looming for a new retransmission consent and carriage deal between Cox and Verizon, the two parties have started trading barb...
09/12/2025
SAN FRANCISCO Samba TV has announced that it has secured new financing from Horizon Technology Finance Corporation, an affiliate of Monroe Capital, with an init...
09/12/2025
Many cord-cutters looking to reduce their monthly cable or satellite bills are also cutting back on streaming costs, according to new research from All About Co...
09/12/2025
LAS VEGAS and NASHVILLE, Tenn. Shure technology played a critical role during the broadcast productions of the 59th Annual CMA Awards at the Bridgestone Arena i...
09/12/2025
Unveiling of new CV1, web-browser workflows and Milan roadmap for mission-critical AV environments
Nixer Pro Audio will return to Integrated Systems Europe (IS...
09/12/2025
Spring Forward Are you ready to spring forward? The following steps will automate your transition from Standard Time to Daylight Saving Time.
Ensure all WO Aut...
09/12/2025
Tuesday 9 December 2025
Judy Murray calls for PE to be a priority for all schoo...
09/12/2025
Kyocera and Rohde & Schwarz demonstrate OTA characterization of mmWave PAAM at C...
09/12/2025
Wuppertal December 9, 2025
Riedel and Racing Electronics Announce Strategic Pa...
09/12/2025
Verified: LinkedIn crosses 100M member milestone From LinkedIn Published on Dec 9, 2025 Categories: Company News, Featured News
LinkedIn Corporate Communi...
09/12/2025
Another year, another 12 months of amazing adventures.
We are pleased to bring you our Highlights of the Year 2025.
We've worked hard and played hard this...
09/12/2025
Original article published in TV Tech: https://www.tvtechnology.com/equipment/bmg-redefines-remote-production-through-cloud-connected-workflows
When I started ...
09/12/2025
DPA Microphones today announces the immediate availability of its new N-Series Digital Wireless Microphone System for customers throughout the U.S. In addition ...
09/12/2025
Jason, before we get into the detail, what first got you involved in retail media standards? And how did you come to chair IAB Europe's Retail and Commerce ...
09/12/2025
Current Rose of Tralee Katelyn Cummins has been revealed as the third contestant...
09/12/2025
An easier approach to recreate the powerful nerve-blocking molecule found in shellfish A Scripps Research-led study resolves the challenge of synthesizing saxit...
08/12/2025
SVG Summit 2025 Technology Exhibits Preview, Part 1By SVG Staff
Monday, December 8, 2025 - 6:56 am
Print This Story | Subscribe
Story Highlights
The 2025...
08/12/2025
2025 Sports Broadcasting Hall of Fame: Bill Rasmussen, the Entrepreneur Who Drea...
08/12/2025
SVG Summit 2025 Preview: Live Production Innovation Workshop Goes Deep on ST 211...
08/12/2025
#GALSNGEAR Announces East, West Leadership Retreats for 2026By Ken Kerschbaumer
Monday, December 8, 2025 - 9:10 am
Print This Story | Subscribe
Story High...
08/12/2025
MediaKind Acquiring Harmonic's Video Business to Create New Streaming-Video ...
08/12/2025
Platinum White Paper: Sony HDR/SDR Camera Shading Techniques for Live Production...
08/12/2025
SVG Sit-Down: NESN's Kenny Elcock and Harmonic's Jean Macher Talk Next-G...
08/12/2025
Monsters Funday Football,' ESPN's Latest Live Animation Effort, Advances...