
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...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
Version 1.8 will bring advanced routing control, new workflow tools, boosted control panel flexibility and ease of integration into IP networks...
11/09/2026
Ikegami announces four additions its UNICAM XE range of 4K-UHD cameras with the introduction of the UHK-X700VN, UHK-X750VN, UHK-X600VN and UHK-X650VN. Developed...
11/09/2026
DHD.audio has chosen IBC2026 as the launch venue for a major new addition to its broadcast sound production platform: the MX3 console range. MX3 retains the mod...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
11/09/2026
New standalone solution gives production teams everything they need to create, produce and deliver live content from one flexible system.
Grass Valley today an...
11/09/2026
Recognition honors the development of FPV drone camera systems for live sports broadcast coverage
Wave Central, a Domo Broadcast Company that develops advanced...
11/09/2026
Teradek, the industry leader in zero-delay wireless video solutions, announced the launch of Bolt 7, which now includes a unified wireless video and data system...
11/09/2026
The ACT Entertainment tvONE and Green Hippo Pixel Academy has released its autumn course schedule, with hands-on training dates in September, October and Novemb...
11/09/2026
LA JOLLA, CA-Transthyretin amyloid disease (ATTR) is a progressive, life-threatening condition caused when the protein transthyretin (TTR) breaks apart and aggr...
11/09/2026
Major Update to Blackmagic Cloud
Brie Clayton September 10, 2026
0 Comments
Blackmagic Design has announced a major update to Blackmagic Cloud which a...
11/09/2026
Dalet Helps Media Organizations Navigate the Rise of Synthetic Content with NVID...
11/09/2026
RT has today announced Benetti Menswear as the sponsor of its 2026 Amgen Irish Open coverage for a sixth consecutive year, further strengthening the heritage c...
10/09/2026
Duff Foreman is an AI-generated announcer who will add color to this month's New Mexico Open...
10/09/2026
Bitmovin is rolling out Encoder Version 3, the next major release of the technology behind its VOD and Live Encoders. Version 3 is built on a premise every stre...
10/09/2026
At IBC2026, on booth 1.B47, Net Insight will showcase Open Live Media, its architecture for delivering resilient live media services across networks, partners, ...
10/09/2026
The Professional Women's Hockey League (PWHL) and Scripps Sports have announced a national broadcast rights agreement for the 2026-27 season, a landmark par...
10/09/2026
The Trusted Partner Network (TPN), the global content security initiative powere...
10/09/2026
The NFL is launching its most expansive creator programming yet, bringing togeth...
10/09/2026
Sportsnet is set to deliver its biggest hockey season ever with a national sched...
10/09/2026
LiveU is now a Clarus Integrated Reseller, bringing Starlink's fast, reliabl...
10/09/2026
Mimir is the cloud-native media production platform built for teams that need to move media fast across live, archive, web, social, and broadcast workflows. At ...
10/09/2026
ATSC is being honored with a 2026 Technology & Engineering Emmy Award by the Nat...
10/09/2026
Audio-Technica has introduced the BP880R Contact Transducer, a specialized micro...
10/09/2026
TMRW Sports in partnership with the LPGA, today announced multiyear U.S. media rights agreements with ESPN and Scripps Sports/ION to bring WTGL, the new women...
10/09/2026
SportsNet Pittsburgh (SNP) in partnership with Major League Baseball and the Pit...
10/09/2026
Tennis Channel announced today its launch as a Premium Subscription on The Roku Channel.
Tennis Channel offers viewers a single home for Tennis Channel and Ten...
10/09/2026
Dolby has announced major updates to Dolby OptiView, its live sports platform, ahead of IBC 2026. The updates include new AI-powered intelligence to better unde...
10/09/2026
Dalet has appointed Brian Doheny as CEO. Doheny joined Dalet as President and Chief Revenue Officer in April 2026. Since joining Dalet, Doheny has led the compa...
10/09/2026
Sony, as well as its partner company Nevion, is starting IBC 2026 with a handful of announcements for attendees to see on the show floor.
Sony Announces the 4t...
10/09/2026
The six-year-old venue is expanding capabilities for NFL action, Super Bowl LXI, 2028 Summer Olympics
SoFi Stadium, as well as the surrounding area known as Ho...
10/09/2026
Editing, restoration & mastering suite upgraded Acon Digital Acoustica 8 audio editing restoration mastering software.
Acon Digital have just launched the la...
10/09/2026
Classic synths & drum machines available to play
Based in Reading, UK, Readipop are a music and arts charity with a long track record of innovative, partici...
10/09/2026
Popular model updated & new addition introduced
With many of the models in Neumann's KH family now boasting onboard DSP and support for the company'...
10/09/2026
Improved desktop interface announced
The latest iteration of Arturia's flagship desktop audio interface has just arrived, introducing improved preamps, ...
10/09/2026
Progress needs proof: Rohde & Schwarz showcases its trailblazing test solutions ...
10/09/2026
France launch follows UK and Germany as Nielsen expands product across EMEA
Paris, France, September 10, 2026 - Nielsen, a global leader in audience measuremen...
10/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
10/09/2026
Leading professional audio manufacturers NUGEN Audio, RTW, Steinberg and Telos Alliance have joined forces with Fraunhofer IDMT to establish a common approach t...
10/09/2026
Built Into Setplex's Zapflex Platform, AI Insider Turns Video Service Data Into Actionable Insights
Setplex today introduced AI Insider, a breakthrough new...