
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 ...
09/10/2026
September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026
New Sports Intelligence helps providers better unders...
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...
26/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
26/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/09/2026
In-venue and creative video staffers at the professional and collegiate level ha...
25/09/2026
Infront has named Ronald den Hollander as CEO of its Host Broadcast Services (HBS) subsidiary, effective 1 October 2026. The appointment follows the previously ...
25/09/2026
The North American Broadcasters Association (NABA) will hold Cyber University 2.0, a full-day cybersecurity summit for the broadcast and media industries, on Tu...
25/09/2026
Alpha Networks and Ateme have delivered a joint video platform for the digital d...
25/09/2026
Encompass Digital Media has announced the migration of multiple Viaplay free-to-air channels - TV3, TV6, TV8, and TV10 - to its Altitude Scheduling platform. Al...
25/09/2026
NAB Show New York 2026 will take place October 21-22 at the Jacob K. Javits Convention Center in New York City. Registration is open at nabshow.com/newyork.
Th...
25/09/2026
NHL Network has announced its studio programming lineup for the 2026-27 regular ...
25/09/2026
Clear-Com has announced that First Baptist Nashville has upgraded its production communications with a Clear-Com intercom system as part of a sanctuary technolo...
25/09/2026
Broadcast Management Group (BMG) has deployed EVS XT-VIA live video production s...
25/09/2026
BBright, a Hexaglobe Group company, has announced that dotCentral has joined as a sales and support partner in the United States.
BBright's portfolio cover...
25/09/2026
MeyerPro delivered audio, video, broadcast, and LED production for the Acumatica Summit 2026 at the Seattle Convention Center's Summit Building, January 25-...
25/09/2026
The Professional Women's Hockey League has announced its inaugural All-Star Weekend, to be held Saturday, March 7, 2026, at Scotiabank Arena in Toronto. The...
25/09/2026
The 2026 Presidents Cup is underway at Medinah Country Club outside of Chicago with Team USA and an International Team of men's golfers facing off for four ...
25/09/2026
Warner Bros. Discovery's Atlanta hub hosted a day of discussion on REMI prod...
25/09/2026
Algorithm update & new DVA vibrato-detection engine
A new flagship version of Antares' iconic pitch-correction software has arrived, and along with a co...
25/09/2026
New flagship unit to arrive in early 2027
Two notes Audio Engineering have revealed that a new and improved version of their hugely popular reactive load bo...
25/09/2026
AI-free mixing tool gets an upgrade
Launched in October 2025, Tim Exiles Finalist is an algorithmic mixing tool that's been designed for those who don...
25/09/2026
Rohde & Schwarz Mobile Test Summit 2026 puts the spotlight on 6G - registrations...
25/09/2026
In our latest blog, Tim Pearson reflects on IBC 2026 and considers the main learnings against an industry that saw AI finally coming out of the labs and into pr...
25/09/2026
Digital Anarchy Releases Newest Version of its Real-Time Skin Retouching Tool fo...
25/09/2026
Blackmagic Design Used on More Than 50 Summer Films in 2026
Brie Clayton September 25, 2026
0 Comments
Hero image: Disclosure Day
Blackmagic Design p...
25/09/2026
How I Automated Social Media Resizing in After Effects - Free Script
Graham Quince September 25, 2026
0 Comments
If your text keeps getting cut off on...
25/09/2026
IBC has unveiled the winners of the prestigious IBC2026 Innovation Awards at an event held at the RAI Amsterdam on Sunday 13 September, honouring collaborative ...
25/09/2026
IBC2026 brought the global media, entertainment and technology community together for four days of business, innovation and collaboration at the RAI Amsterdam. ...
25/09/2026
Lightware testing has revealed that each USB-C port on Apple's new MacBook Neo consumes three of the seven USB tiers available under the USB specification, ...
25/09/2026
Lightware is supporting educational institutions in building modern learning environments by combining professional training with education-focused AV technolog...
25/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/09/2026
Long-Standing Customer Renews Multiyear Contract for VO's Secure Video Player, Content Security, and Device Monitoring Solutions
Viaccess-Orca (VO), a glob...
25/09/2026
Automate Video Progress Bars in After Effects - No Keyframes!
Graham Quince September 24, 2026
0 Comments
Learn how to create an automated video playb...
25/09/2026
Friday 25 September 2026
How to watch an unmissable weekend of women's football on Sky Sports and NOW
Sky Sports and NOW will broadcast seven live games f...
25/09/2026
Friday 25 September 2026
YAGA trailer released, coming exclusively to Sky and N...
25/09/2026
Watch this space: a new strategic direction for UK media. Arqiva has submitted its response to the Governments Green Paper on the future of television distribut...
25/09/2026
Want to be part of this year's Late Late Toy Show?
Final call for applications in search for this year's stars
The most wonderful night of the year is...
24/09/2026
Broadcast Management Group (BMG) is supporting Virginia Public Media (VPM), the ...
24/09/2026
RED Digital Cinema's RED V-RAPTOR [X] and RED V-RAPTOR XL [X] cameras with the Phantom Track feature are the first cameras to receive GhostFrame Pro Certifi...
24/09/2026
Bringing together the full family of networks, FOX Sports is also adding Tubi, F...
24/09/2026
Virginia Polytechnic Institute and State University (Virginia Tech) has unveiled...
24/09/2026
The blog collects SVG's reporting on AI across U.S. and European sports broadcasting
Since SVG launched the AI Innovation Lab in April to advance the devel...
24/09/2026
SVG's annual TranSPORT conference, which will be held on Tuesday, Oct. 20 in...
24/09/2026
The self-built Master Control Room has cut streaming operations incident-respo...
24/09/2026
Ortana Media Group, the software systems integrator behind the Cubix workflow platform, has connected AudioShake's audio separation models to ScorePlay thro...