
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...
05/08/2026
Thomson's Climate Crisis Toolkit for Media in Tanzania is being included in a new virtual library designed to ensure accurate and engaging storytelling arou...
05/08/2026
RSNs, teams, leagues, and streamers explore the present and future of local spor...
05/08/2026
As sports-production workflows generate larger volumes of unstructured data and ...
05/08/2026
Three aspiring broadcasters will contribute on-camera and inside the production ...
05/08/2026
Adam Meeks attends the premiere of his film Union County, an official selection of the 2026 Sundance Film Festival. (Photo by Jemal Countess/Sundance Institut...
05/08/2026
Major discounts, updates & remakes of early VST plug-ins
Steinberg are currently celebrating two significant anniversaries, with this week marking the 30th ...
05/08/2026
Flagship monitor range gains wireless remote control
KRK's flagship studio monitor range has just been upgraded, with three new fifth-generation models ...
05/08/2026
Rohde & Schwarz launches next phase of Airways New Zealand Air Traffic Control s...
05/08/2026
Rohde & Schwarz presents the R&S MP007, a man-portable tactical direction findin...
05/08/2026
Advertisers invested $53.6 million in the retirement sector in the last 12 month...
05/08/2026
Nielsen CMI and Ad Intel data reveals who's visiting IKEA, where else they s...
05/08/2026
Media buyers and sellers can now compare deduplicated campaign reach across computer, mobile, connected TV and linear TV across all measurable CTV publishers in...
05/08/2026
Stranger Things' Leads All Streaming Titles with 23.3 Billion Minutes in Fir...
05/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/08/2026
QuickLink, the leading provider of award-winning video production and remote guest integration solutions, announces the appointment of Kane Peterson to its Nort...
05/08/2026
XR research reveals marketers believe they have control over production costs, yet budget overruns, campaign delays and creative cutbacks remain commonplace
Se...
05/08/2026
Game On Live Studio Uses Blackmagic Design to Stream Tropical 7s
Brie Clayton August 4, 2026
0 Comments
Every match of world's largest youth rugby...
05/08/2026
Chris Fitzgerald to Head TDC's Experiential Growth
Brie Clayton August 4, 2026
0 Comments
Technical Direction Company promotes Chris Fitzgerald to...
05/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/08/2026
Profuz Digital is set to launch a powerful upgrade to its Profuz LAPIS digital media management platform at IBC this year at Stand 8.A88. France Galop, Canal+ F...
05/08/2026
KRK, a Gibson brand and leader in professional studio monitoring for nearly four decades, launches its new V Series Five Studio Monitors, the latest evolution o...
05/08/2026
Network expansion, continued customer growth and stable financial performance characterized Magyar Telekoms business results for the first half and second quart...
05/08/2026
Wednesday 5 August 2026
The Sky Foundation launches new bursary programme to su...
05/08/2026
Charlie Sheen Launches Mostly Sheenius in Partnership with Red Seat Ventures After Decades as One of the World's Most Recognizable and Interviewed Celebr...
04/08/2026
Live production in the cloud is a growing trend across the industry, and Major L...
04/08/2026
LAFC co-managing owner will succeed Don Garber on Jan. 1, 2027, as league prepar...
04/08/2026
In 2022, when the PGA TOUR was breaking ground on its new, state-of-the-art broa...
04/08/2026
Provided by POVORA, the new camera angle offers a dealer's-eye view of the c...
04/08/2026
Spiideo will provide the camera setup, with NEP handling broadcast integration and off-site video operations...
04/08/2026
Production team streamed more than 750 youth rugby matches using ATEM switchers,...
04/08/2026
Agreement gives KTC early access to NDI's Advanced SDK for integration across commercial displays, digital signage, and interactive panels...
04/08/2026
Twelve projects across four categories recognize collaborative work in productio...
04/08/2026
Multi-year agreement will introduce SkeleTRACK, semi-automated offside, automate...
04/08/2026
Three mc 56 consoles, dual A__UHD Core engines, RAVENNA networking, and HOME management supported live sound, monitoring, and international broadcast production...
04/08/2026
New contribution products support ultra-low-latency video transport across fixed, remote, and mobile production environments...
04/08/2026
Company will showcase updates across PRIME, Chyron LIVE, Paint, virtual production, newsroom workflows, and venue control...
04/08/2026
Exhibit will feature SilverBack, VersaBrix, VersaFrame, VF-9100, and FiberSaver-10G platforms...
04/08/2026
Platform updates target cloud-based production, high-density ST 2110 monitoring,...
04/08/2026
Live Media Group will take control of Gravity Media's U.S. mobile-unit fleet...
04/08/2026
Amp-modelling rigs get major upgrade
HeadRush have recently released a major firmware update that brings some powerful new features to their Prime, Core and...
04/08/2026
Generate a choir from a single voice track
Following years of development, Am I Audio have just officially launched their debut plug-in. Created in collabor...
04/08/2026
Official EMT-endorsed reverbs now available to all
Two more of Universal Audio's renowned UAD plug-ins have just gained new native versions that can be ...
04/08/2026
SBS helps Australians understand why every Census counts
Media releases
As Australia prepares for the 2026 Census on Tuesday 11 August, SBS is helping ensur...
04/08/2026
Canada invests in the future of HF communications with Rohde & Schwarz solutions After selection by the Canadian Department of National Defence (DND) as the p...
04/08/2026
Blendkit Expands Beyond Blender
Brie Clayton August 4, 2026
0 Comments
Popular 3D Asset Library Launches Alpha Plugins for Maya, Godot, and Rhino
Blend...