
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...
14/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/08/2026
amaran, pioneer of lighting tools for creators, today announced the amaran Mic, a 99 wireless desktop microphone that brings the brand into audio for creators ...
14/08/2026
Creative COW Roundtable: Introduction to the New After Effects Assistant - AEAI
Brie Clayton August 13, 2026
0 Comments
On August 23, 2026 at 9am PDT/...
14/08/2026
Life on Waves Posted with DaVinci Resolve Studio
Brie Clayton August 13, 2026
0 Comments
Collaborative editing and color grading workflow supported by...
14/08/2026
Why Bulletproof Video Project Archiving Is Non-Negotiable
John Carboni August 13, 2026
0 Comments
In video production, the work is far from over when ...
14/08/2026
Stacked with Boston Conservatory Talent, Shakespeare on the Common Celebrates It...
13/08/2026
LaLiga has renewed broadcast agreements with ESPN and DSports covering Spanish-l...
13/08/2026
Three days of skateboarding competitions, live music, and other programming will...
13/08/2026
Matrox Video will showcase its portfolio of IP and software-defined technologies at IBC2026 (Booth 7.B15, RAI Amsterdam, September 11-14).
The portfolio includ...
13/08/2026
SMPTE will present expert-led sessions, professional workshops, and networking events at IBC2026. The organization will be located in the IBC2026 Owner Pavilion...
13/08/2026
Clear-Com will exhibit at IBC2026 (Stand 10.D29, September 11-14, Amsterdam), showcasing FreeSpeak Cell, Avalon IP Station, updates to Arcadia Central Station, ...
13/08/2026
Advanced Systems Group (ASG) has appointed Eran Binyamin Zeitoun as Senior Techn...
13/08/2026
Miami HEAT, Florida Panthers, Orlando Magic, University of Miami join leading vendors for a day of gameday-production talk in South Florida
The 2026 SVG Venues...
13/08/2026
NBC Sports is producing the Twins-Phillies game alongside the streamer, which is...
13/08/2026
Oracle Cloud Infrastructure (OCI) will exhibit at IBC2026 (Hall 5, Booth 5.A21, September 11-14, Amsterdam), demonstrating cloud-based workflows across low-late...
13/08/2026
Dalet will participate in the IBC2026 Accelerator Media Innovation Programme, co...
13/08/2026
Cox Media Group (CMG) has announced multi-year local broadcast rights agreements...
13/08/2026
J nger Audio will join Fraunhofer IIS and industry partners to showcase a cloud-based, DTV+-compliant workflow at SET Expo 2026 in S o Paulo, August 17-20. DTV+...
13/08/2026
IBC has announced that Olympic Broadcasting Services (OBS) will receive the Inte...
13/08/2026
NESN has partnered with WSBK-TV38 to broadcast Boston Red Sox games on August 17 and 18 over the air, extending the reach of the 24th annual WEEI/NESN Jimmy Fun...
13/08/2026
LiveU and Panasonic LUMIX have announced the Live Anywhere workflow, demonstrated at NAB 2026 and InfoComm 2026 in collaboration with Social180Group. The work...
13/08/2026
Chyron will demonstrate its sports analysis, graphics, remote production, virtual production, and venue control solutions at IBC2026 (Booth 7.A23). This year...
13/08/2026
Ratings Roundup is a rundown of recent ratings news and is derived from press re...
13/08/2026
Season tips off Oct. 20 and runs through April 11; Christmas Day, NBA Cup, All-S...
13/08/2026
Company preview bio-interactive' synthesizer
VAEMI have announced the upcoming launch of a new standalone bio-interactive' generative synthesizer....
13/08/2026
Plug-in host gains new Slot Scenes feature
Ravine DSP have recently updated their innovative plug-in host, kitting it out with a new feature that brings yet...
13/08/2026
New Agreement Aims to Leverage Gracenote Infrastructure to Create More Relevant ...
13/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/08/2026
IBC today announced that its most prestigious honour, the International Honour for Excellence (IHFE), will be presented to Olympic Broadcasting Services (OBS), ...
13/08/2026
Dalet, a leading technology and service provider for media-rich organizations, today announced its participation in the IBC2026 Accelerator Media Innovation Pro...
13/08/2026
dzjinius, the all-in-one production management platform for the media and entertainment industry, will showcase its new application, dzjinius on-set , at IBC20...
13/08/2026
Broadcasting Center Europe (BCE), a leading European provider of media services, system integration and product development, will demonstrate an end-to-end sove...
13/08/2026
Clear-Com is returning to IBC 2026, taking place September 11-14 in Amsterdam, Netherlands. At Stand 10.D29, Clear-Com will spotlight the award-winning FreeSpe...
13/08/2026
Test & measurement innovator, Leader Electronics of Europe, will showcase its comprehensive portfolio of Leader, PHABRIX and LeaderPhabrix test and measurement ...
13/08/2026
KRK Brings Advanced Wireless Control to Professional Monitoring With New V Serie...
13/08/2026
Anthony Noack Captures Artist's Journey in Estonia with Blackmagic Design
Brie Clayton August 12, 2026
0 Comments
Solo filmmaker documents concept...
13/08/2026
ARRI Image Science makes its mobile debut in the HONOR Robot Phone
Brie Clayton August 12, 2026
0 Comments
Hero image displays the HONOR Robot Phone, ...
13/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/08/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/08/2026
Suitest's Test Automation Platform Simplifies Video Quality Assurance, Monitoring, and Device Certification Across the OTT Ecosystem
At IBC2026, Suitest, a...