
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 ...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
SMPTE, the home for media professionals, technologists and engineers, is expanding its presence in Africa through a series of industry events in South Africa th...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
HuskerVision, the video production and multimedia operation for University of Nebraska Athletics, has deployed Grass Valley K-Frame production switchers and LDX...
14/10/2026
Eden Project, the UK-based visitor attraction, social enterprise and educational charity, is using the LiveU EcoSystem to produce and deliver its new Eden Proje...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/10/2026
IPC Announces Plans to Showcase its One Connect Intercom Platform at
NAB New York 2026
Visit IPC as a Featured Vendor in the Dale Pro Audio Booth
IPC, a le...
14/10/2026
Dr Trauma selected for Dynamic Television Scripted Initiative 14 October 2026
L-R: Sarah Bailey, Troy Lum.
Screen Australia and Dynamic Television today annou...
14/10/2026
3D Artists Design Cars for GTA VI in a No-AI Rendering Challenge
Brie Clayton October 13, 2026
0 Comments
3DModels.org has opened its annual Car Rende...
14/10/2026
RE:Vision Effects Announces ARRI Film Lab 1.5 Release
Brie Clayton October 13, 2026
0 Comments
ARRI Film Lab 1.5 adds many user requested features inc...
14/10/2026
MTI FILM DRS Nova V7.0 Major Release Now Available
Brie Clayton October 13, 2026
0 Comments
A step forward in digital film restoration
DRS Nova V7.0 ...
13/10/2026
#GALSNGEAR has released Season 3 of its Tequity Talk podcast, with new episodes dropping every Tuesday through December 15. Hosted and executive produced by #GA...
13/10/2026
Most Valuable Promotions (MVP) has appointed Joe Setley as Senior Vice President...
13/10/2026
Zixi and TAG Video Systems have announced an extended integration enabling the Z...
13/10/2026
LTN has announced an integration between LTN Schedule Playout and Sony's Ci Media Cloud platform, connecting cloud-based media management with linear playou...
13/10/2026
Infront has established a new management structure for Infront Productions. Amikam Kranz, Senior Vice President Media, Betting, Technology and Production, assum...
13/10/2026
Just Women's Sports (JWS) has announced three developments: the acquisition ...
13/10/2026
Cinematographer Philip Lozano AFC used the Sony Rialto Mini (VENICE Extension Sy...
13/10/2026
In a fundamental change, one expensive act of content creation could become many...
13/10/2026
The annual event will explore streaming, personalization, partnering with indepe...
13/10/2026
Freestyle Chess has announced a partnership with Game+, bringing coverage to 3.5 million households across Canada and the United States. The partnership launche...
13/10/2026
The St. Louis Blues and Gray Media have announced a multi-year partnership to si...
13/10/2026
Spalk has announced expanded multilingual commentary partnerships with the NBA and NFL. For the NBA, Spalk will provide remote broadcasts in Greek, Portuguese, ...
13/10/2026
Every NHL team. Five hours of nonstop hockey. ESPN's Frozen Frenzy is back
The busiest night of the NHL season returns tonight with ESPN's NHL Frozen F...
13/10/2026
The longtime production-facilities provider also continues to roll out new mobil...
13/10/2026
Behind The Mic provides a roundup of recent news regarding on-air talent, includ...
13/10/2026
StreamU, the college athletics livestreaming network from TheLinkU and Twitch, has opened its first on-campus content studio at UC Berkeley. Cal student-athlete...
13/10/2026
By Ramona Flume
One of the most exciting things about the Sundance Film Festiva...
13/10/2026
Two new MPE-capable libraries announced
Sonora Cinematic's The Founders Locker line-up has just gained two new additions: Penombra Celli and Penombra Vi...
13/10/2026
Debut offering in new oneTHNG plug-in series
Modular synth experts Modbap have just announced the launch of Fidelity Theory, a new creative effect that mark...
13/10/2026
Last week, SGL Carbon celebrated the expansion of its production capacity at its St. Marys site (USA). SGL Carbon has invested around USD 100 million in the exp...
13/10/2026
Rohde & Schwarz presents unique R&S NTS transfer standards for RF power traceabi...
13/10/2026
The Minister of Sport, Arts and Culture, Mr Gayton McKenzie, invites suitably qu...
13/10/2026
The Minister of Sport, Arts and Culture, Mr Gayton McKenzie, invites members of ...
13/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
13/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...