
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...
02/05/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
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/03/2026
Beyond Sports, a Sony group company, and LIV Golf, the world's golf league, ...
03/03/2026
Ilitch Sports + Entertainment announces the launch of Detroit SportsNet (DSN), a year-round broadcast home for two of Detroit's franchises. With flexible op...
03/03/2026
Advanced Systems Group, LLC (ASG), a technology and services provider for media ...
03/03/2026
The PGA of America, NBC Sports and USA Sports extend their media rights agreemen...
03/03/2026
AI device ecosystem company HONOR enters into a strategic technical collaboratio...
03/03/2026
Cleveland's Telos Alliance, pioneers in broadcast technology for 30 years, l...
03/03/2026
The MD 9235 microphone head for wireless handhelds has been a firm favorite with many engineers and artists for its ability to cut through high on-stage levels ...
03/03/2026
Haivision Systems Inc. (Haivision), a global provider of mission-critical, real-...
03/03/2026
Broadcast Management Group (BMG) announces the expansion of its 62,000-square-fo...
03/03/2026
Maroon 5's musical tour in 2025 marked a leap forward in live audio as Monitor Engineer Dave Rupsch utilized Sennheiser's all-digital Spectera wireless ...
03/03/2026
Designed specifically for pro basketball, the renovated space at Gainbridge Fiel...
03/03/2026
As part of the move, former CEO Phillipp Lawo joins the broadcast-tech provider's Supervisory Board
Lawo has announced appointment of Jamie Dunn as chief e...
03/03/2026
A team of legendary announcers and analysts and a classic graphics look will bring the past to life
NBC Sports and Peacock will return to yesteryear for tonigh...
03/03/2026
From April 30 to May 3, Sundance Film Festival: CDMX 2026 will offer a selection of exciting independent cinema.
Mexico City, March 3, 2026 - At a moment of he...
03/03/2026
For many, finding time or headspace to pick up a book can feel out of reach, but...
03/03/2026
Rohde & Schwarz and Realtek demonstrate first test solution for Bluetooth LE Hi...
03/03/2026
The National Film and Video Foundation (NFVF) invites aspiring and emerging filmmakers from Matatiele and surrounding areas to apply for the Sediba Scriptwritin...
03/03/2026
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({ content_source:......
03/03/2026
Nielsen's DMA data gives Magellan AI users a standardized way to measure th...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Marshall Electronics premieres the CV356-10X, its latest compact 10X camera that offers Full HD with simultaneous SDI and HDMI outputs, at NAB 2026 (Booth C8339...
03/03/2026
farmerswife, the industry-leading enterprise operations platform for broadcast and post-production, today announced it will exhibit at NAB Show 2026 in Las Vega...
03/03/2026
Manfrotto has announced that the Manfrotto ONE Hybrid tripod has won the iF DESIGN AWARD 2026, one of the world's most respected design honours.
Selected ...
03/03/2026
DHD is expanding the capabilities of its DX2, RX2, SX2 and TX2 broadcast audio mixers, RM1 portable production unit and XC3/XD3/XS2 processing cores with the in...
03/03/2026
Leading video software provider Synamedia and MoMe, a leading Spanish consultancy and systems integrator, today announced the launch of Spain's first stream...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Home Post Production has further expanded its factual, unscripted, and entertainment capabilities with the acquisition of Picture Shop Bristol, a leading post h...
03/03/2026
Luxembourg, 2 March 2026 -- SES S.A. fully consolidates Intelsat from 17 July 2025 and announces financial results for the year ended 31 December 2025
FY25 Pe...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/03/2026
03 Mar 2026
VEON and MeetKai Expand Collaboration to Explore Sovereign AI Infra...
03/03/2026
Tuesday 3 March 2026
Sky releases official trailer for The Miniature Wife, a Sk...
03/03/2026
Tuesday 3 March 2026
Ryan Reynolds and Rob Mac land first ever live commentary ...
03/03/2026
Tuesday 3 March 2026
The Dyers' Caravan Park reopens for a second season after a hit launch on Sky
The Dyers' Caravan Park
JPEG (510KB)
Sky books a ...
03/03/2026
Back to All News
Kai Ko and Wang Po-chieh Unleash Divine Glory in Electrifying ...