
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 ...
20/10/2026
Sony's Beyond Sports technology will power real-time animation of the game, ...
20/10/2026
The NBA is putting on a full-court press when it comes to digital offerings this year, and that includes some great new features on the NBA App as well as a new...
20/10/2026
Testing what works is an important part of developing successful fan engagement....
20/10/2026
One fan in The Nordecke will wear the device via headset on Wednesday night
Spo...
20/10/2026
Regular-season game coverage will continue to be a mix of REMI and onsite produc...
20/10/2026
Grass Valley has added Bridge Technologies to the company's Media eXchange Layer (MXL) initiative, demonstrating how this has supported the containerization...
20/10/2026
Gravity Media has rapidly deployed complete IP-based broadcast infrastructure fo...
20/10/2026
Ateme has announced a strategic partnership with Viamedia, the ad tech company b...
20/10/2026
As concerts and other live performances reach audiences through global streaming...
20/10/2026
Media Links' Xscend platform and MDP3020 IP media gateways supported live broadcast contribution for the All-Asia Games, that recently took place in Japan.
...
20/10/2026
For Major League Soccer creative teams, 2027 is going to be unlike any year they...
20/10/2026
The National Hockey League (NHL) has given a first look at its planned transform...
20/10/2026
FloSports and the National Lacrosse League (NLL) have entered into a multiyear m...
20/10/2026
The Advanced Media Workflow Association (AMWA) has received a 2026 Technology & ...
20/10/2026
Pearl TV has made significant progress in its industry-wide initiative to make NEXTGEN TV converter boxes more affordable and accessible to consumers, marking a...
20/10/2026
The 37th edition of SPORTEL Awards took place on Monday, Oct. 19 at the Grimaldi Forum Monaco, under the High Patronage of H.S.H. Prince Albert II of Monaco. Ch...
20/10/2026
Amagi has announced a strategic partnership with Sistemas de Video Comunicaci n ...
20/10/2026
The home of cycling coverage is secure as Eurosport and TNT Sports today extend ...
20/10/2026
By Ramona Flume
One of the most exciting things about the Sundance Film Festiva...
20/10/2026
Veteran Entertainment and Brand Executive to Lead Global Communications Strategy...
20/10/2026
Inspired by late-90s & early-2000s R&B, hip-hop & club music
UJAM have just introduced two new virtual instruments that bring together a versatile selection...
20/10/2026
Synth gains free editor & librarian application
Back at Superbooth 2026, Groove Synthesis gave us a sneak preview of a desktop software application that off...
20/10/2026
With more than 30 years in the Italian broadcast market, Video Progetti will offer the complete Calrec range, giving broadcasters the freedom to choose and scal...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Calrec has appointed Video Progetti, the Rome- and Milan-based broadcast distributor and AV system integrator, as its distribution partner for Italy. Media comp...
20/10/2026
FOR-A has collaborated with Canon to integrate PTZ camera control into the software-defined MixBoard production switcher. The resulting seamless operations wer...
20/10/2026
Great music rarely happens in isolation. It emerges when artists, producers, and songwriters exchange ideas, challenge one another, and find unexpected creative...
20/10/2026
Collaboration gives broadcast teams a faster path from network alerts to the affected equipment, system dependencies and support information
BeckTV, Beam Dyna...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
University of Washington Intercollegiate Athletics has brought its new Sundodger Studios production facility on air, with Grass Valley cameras and production sw...
20/10/2026
Live demos will include upgrades for the X510 bonding router, self-serve management for NetConnect data plans and a technology preview of future developments
...
20/10/2026
Jigsaw24 has appointed Alex Battrick as Pre-Sales Solution Consultant, strengthening its technical expertise as the company expands its offering across live pro...
20/10/2026
COW Jobs: Toronto Freelance Crew Call - Your Story - open, ongoing
Brie Clayton October 19, 2026
0 Comments
Toronto Freelance Crew Call - Your Story (...
20/10/2026
Give your photos a second chance with Open Eyes in Lightroom on mobile
Shambhavi Kadam October 19, 2026
0 Comments
You know the frustration. Everyone ...
20/10/2026
Paperwolf Studio launches eight creative OpenFX plugins for DaVinci Resolve
Brie Clayton October 19, 2026
0 Comments
Datamosh, slit-scan, camcorder lo...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/10/2026
LA JOLLA, CA-The Scripps Research Alumni Network has announced the two divisional winners of its inaugural awards program, created to honor institute alumni for...
20/10/2026
2026 UNTAPPED Development Lab participants announced 20 October 2026
Top (L-R): Becki Bouchier, Carly Brand, Leslie Hornung. Bottom (L-R): Joseph Meldrum, Elle...
20/10/2026
Boston Conservatory Center Stage Presents Romantic Musical Comedy She Loves Me Conservatory musical theater students will perform the charming production, set...
20/10/2026
Rachel McFarlanes American Dialogue Premieres at Carnegie Hall The alum composer and violinists commissioned work is part of Sphinx Virtuosis nationwide tour ...
20/10/2026
Collaboration delivers comprehensive camera control and switching in a single intuitive interface...