
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...
25/08/2026
Open, Sustainable, Predictable: What Utah Scientific Is Bringing to IBC 2026 As broadcast leaders prepare to gather at the RAI Amsterdam for IBC 2026, the main ...
25/08/2026
NC State's Matthew Byrd breaks down how an IP-based infrastructure is delivering greater flexibility and scalability for Wolfpack productions...
25/08/2026
Deal expands the DTC reach in-market of Capitals, Wizards, Mystics games and oth...
25/08/2026
The two-year renovation period will create a stadium of the future for the NFL f...
25/08/2026
Behind The Mic provides a roundup of recent news regarding on-air talent, includ...
25/08/2026
Shell Energy Stadium in Houston has installed a new L-Acoustics A Series loudspeaker system, designed and installed by LD Systems, a Clair Global brand. The 20,...
25/08/2026
FloCollege is expanding its distribution and product offerings for the 2026-27 season, covering more than 20 NCAA partner conferences across Division I, II, and...
25/08/2026
TNA Wrestling and REVOLT have announced a content partnership bringing exclusive TNA Xplosion matches and content from TNA's library to REVOLT.
Our indust...
25/08/2026
Gracenote, Nielsen's content intelligence business, has released its Q3 2026 Data Hub analysis showing that FAST sports programming is growing at more than ...
25/08/2026
Amagi has appointed Thomas d'H rouville as Head of Sales for France, Benelux, and Nordics. Based in Paris, he will lead Amagi's growth strategy across t...
25/08/2026
IPC has appointed CCATech as its channel partner in Brazil, expanding the company's presence in Latin America. CCATech was founded in 2023 by Carlos Abrah o...
25/08/2026
FanConnect has announced the FC4, a multi-output media player designed to drive mid-sized video walls, multi-screen concession stands, and multi-display digital...
25/08/2026
JWX has launched JWX Content Hub, a platform for publisher video that combines content transformation, social distribution, audience engagement, and monetizatio...
25/08/2026
Techex has appointed Stuart Almond as Chief Revenue Officer. Almond brings more than 25 years of experience across technology, media, and telecommunications, ha...
25/08/2026
Grass Valley will demonstrate infrastructure connecting SDI, SMPTE ST 2110, MXL, and software-based processing at IBC2026 (Booth 9.A01, RAI Amsterdam, September...
25/08/2026
Franchises are taking greater ownership of production, distribution, and the fan...
25/08/2026
The first-year circuit for former professional athletes leans on LiveU, Starlink...
25/08/2026
Announcing the 2026 Sundance Institute Breakthrough | Focus Features Fellows
L...
25/08/2026
Auction Part 3 running until 9 September 2026
Soundgas have announced that the latest stage of their John Paul Jones Gear Auction is now live, and that bids...
25/08/2026
Over 60 award-winning artists, songwriters, producers, engineers
The MONO Music Conference (formerly Music Expo SF), San Francisco's premier event for m...
25/08/2026
All three versions receive firmware upgrade
Groove Synthesis have just launched a free firmware update that kits the 3rd Wave out with two major new feature...
25/08/2026
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Lingopal, the AI-powered live translation and localization specialist, is unveiling new platform capabilities at IBC2026 (11 14 September, RAI Amsterdam), helpi...
25/08/2026
Bminty is supporting TV5MONDE in the evolution of its editorial processes through a new AI-assisted press information generation solution. Combining the Louise ...
25/08/2026
Two Cultures. Millions Reached. One Berklee Connection. Meet Annie Dickinson and Zhengxi Zhang-the couple who turned their creative partnership into music car...
25/08/2026
Amagi, the media industry cloud platform for unified broadcast, streaming, and monetization, today announced that Law&Crime has migrated its Court TV channel, s...
25/08/2026
Broadcast Solutions, a leading systems integrator and provider of innovative solutions for the broadcast and media industry, is showcasing the breadth of its ca...
25/08/2026
Thatcham, UK 25 August 2026: Test & measurement innovator, Leader Electronics, has announced that leading broadcast rental company Minitech has purchased a Le...
25/08/2026
Appear's X20 Platform enables visually lossless video contribution with sub-frame latency and full path redundancy for TVTEL's centralised VAR operation...
25/08/2026
World-first demonstration combines 5G Broadcast and Media over QUIC for seamless, ultra-low-latency hybrid media delivery
Big Blue Marble will showcase new dev...
25/08/2026
MNC Software, a global leader in network management and operational support systems tailored to the broadcast and media industry, will showcase its complete sof...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/08/2026
Company to Demonstrate Practical AI Applications That Add Value Today and Longer-Term Path Toward Agentic AI
At IBC2026 (Sept. 11 14, RAI Amsterdam, Stand #1.B...
25/08/2026
Serving South Florida with a unique blend of jazz, Latin jazz, salsa, reggae, blues, and culturally reflective programming, WDNA 88.9FM operates as both a tradi...
25/08/2026
GlobalM announced that it is integrating its GMX software-defined media platform with Oracle Cloud Infrastructure (OCI), bringing together Oracle's global c...
25/08/2026
Siena Kelly, Connor Swindells and Sophie Wilde join Boyle in the eight-part series from Working Title Television and Story Films, directed by Emmy and BAFTA nom...
25/08/2026
The critically acclaimed thriller will return to Sky in NovemberTuesday 25 Augus...
25/08/2026
Wuppertal August 25, 2026
Scottish Rugby Expands Managed Coach Communications Partnership With RiedelRiedel Communications today announced the continued expan...