
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 ...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
04/07/2026
April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...
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...
23/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
23/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/05/2026
Germany's Magenta TV, which will have 44 exclusive FIFA World Cup match broa...
22/05/2026
DAZN, the world's leading sports entertainment platform, has acquired global broadcast rights to the International Federation of American Football's ( I...
22/05/2026
ATHLOS, the all-women's professional track and field league, has announced i...
22/05/2026
The National Academy of Television Arts & Sciences (NATAS) today announced that the 47th Annual Sports Emmy Awards and the 47th Annual News & Documentary Emmy A...
22/05/2026
Wooden Camera today announced the release of new accessories for the Blackmagic URSA Cine Immersive. The new lineup includes a redesigned Top Plate and Side Rai...
22/05/2026
YES Network and OTT Advisors have announced a sixth consecutive season of their streaming partnership, continuing their collaboration on the Gotham app. OTT Adv...
22/05/2026
NESN, New England's premier sports network, will again turn its camera to Fe...
22/05/2026
Dale Pro Audio is hosting an RF over Fiber Livestream Webinar on May 28 from 1-2:30 pm EST. With major sporting events and large-scale productions putting incre...
22/05/2026
Audio-Technica has announced key leadership appointments designed to further strengthen its sales organization and drive continued growth across the Americas. M...
22/05/2026
After nearly four decades shaping the global combat sports landscape, Scott Coker has announced a powerful return as he looks to build a new international mixed...
22/05/2026
Skyline Communications, the company behind the globally deployed DataMiner xOps platform, today announced the launch of xOps Vanguard Runway, a strategic accele...
22/05/2026
For the fully onsite production, 30 cameras - including a SkyCam and Megalodon - will capture the action in Texas
One of the world's biggest rodeo producti...
22/05/2026
Leading Argentina-based sports media company Torneos y Competencias S.A. has modernized its playout operations, implementing a fully redundant, multichannel env...
22/05/2026
As the 2026 Major League Pickleball season kicks off this weekend in Dallas, it ...
22/05/2026
Shure has become a minority investor in Edge Sound Research, a start-up company that is developing new experiential audio technologies that redefine how many au...
22/05/2026
In advance of this year's Sports Emmy Awards, SVG is taking a deep dive into...
22/05/2026
The National Hockey League (NHL) and Amazon Music announced that GRAMMY Award-winning superstar Jelly Roll will provide the official theme song of the 2026 Stan...
22/05/2026
David Pogue will keynote SVV Summer Camp and discuss Apple at 50: How the World...
22/05/2026
In its second year as rightsholder, FOX Sports goes bigger across the board for ...
22/05/2026
Heading into FOX Sports' second Indianapolis 500, Lead Director Mitch Riggin...
22/05/2026
At our 2026 Investor Day, we shared an inside look at the rebuild of our advertising business. This pivot to our own purpose-built platform is already driving s...
22/05/2026
Podcasting on Spotify continues to grow, and so do the ways listeners engage with it. At Investor Day 2026, we shared how we're building the next chapter of...
22/05/2026
Limited-time collections now available
Restoration experts CEDAR Audio have recently launched a new line of Icons plug-ins that make their powerful processo...
22/05/2026
Three new classics join Model Pass line-up
Boss' PX-1 Plugout Pedal offers an innovative approach to guitar pedals, providing users with a hardware stom...
22/05/2026
At its Meitingen site, SGL Carbon has implemented two key projects to further de...
22/05/2026
Statement regarding 2026 National NAIDOC Lifetime Achievement Award for the late...
22/05/2026
Latest data reveals steady distributor rankings, a seasonal shift toward digital...
22/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/05/2026
Amagi Media Labs Limited (NSE: AMAGI, BSE: 544679), a cloud-native SaaS platform providing AI-enabled solutions to global media and entertainment companies, tod...
22/05/2026
An nima Post Relies on Cintel to Revive Classic Mexican Films
Brie Clayton May 22, 2026
0 Comments
Film scanner and DaVinci Resolve Studio help manage...
22/05/2026
Boris FX Sapphire Adds Optical Beauty and Hypnotic Textures
Jessie Electa Petrov May 22, 2026
0 Comments
The 2026.5 release introduces advanced defocu...
22/05/2026
Deployment Preserves Trusted Workflows While Enabling a Path to UHD and SMPTE ST 2110
Leading Argentina-based sports media company Torneos y Competencias S.A....
22/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/05/2026
Back to All News
Ex-Husband, Current Husband, One Wild Rescue: Korean Action Co...
22/05/2026
Catch the latest in Irish music live from venues such as Whelan's, R is n Du...
21/05/2026
Game Creek Video Columbia and Celtic, NEP Supershooter 8 will house onsite produ...
21/05/2026
Freshly graduated, this upstart producer, director, and camera operator is already working as an AP on videoboard shows for the Philadelphia Phillies
In the li...
21/05/2026
Media Links has announced a channel partnership with Clearcast Asia, a broadcast...
21/05/2026
SiriusXM and NASCAR have announced a multi-year renewal of their broadcasting agreement. SiriusXM will continue to carry live broadcasts of every NASCAR Cup Ser...
21/05/2026
Audio-Technica held a demonstration event at its Technica House location in New ...