
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 ...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
02/05/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
01/05/2026
January 5 2026, 18:30 (PST) NBCUniversal's Peacock to Be First Streamer to ...
01/04/2026
January 4 2026, 18:00 (PST) DOLBY AND DOUYIN EMPOWER THE NEXT GENERATON OF CREATORS WITH DOLBY VISION
Douyin Users Can Now Create And Share Videos With Stun...
25/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/02/2026
Arch Platform Technologies, a leading platform for creating and managing cloud workstation infrastructure, and Wacom, the world's leading manufacturer of in...
25/02/2026
Today, AWS is announcing AWS Elemental Inference, a fully managed AI service that automatically transforms and maximizes live and on-demand video broadcasts to ...
25/02/2026
As the only private television broadcaster serving Italian-speaking Switzerland, TeleTicino has long been committed to delivering authoritative, locally focused...
24/02/2026
TNDV, a division of Live Media Group, delivered broadcast and live event product services for Passion 2026, marking the company's 17th year supporting the a...
24/02/2026
Ryan Schaber has had a front row seat to both the dynamics behind the Kraken's now-extended broadcast affiliation with TEGNA and its impact on the broader s...
24/02/2026
All Women's Sports Network (AWSN) announces the debut of women's professional boxing on its fast-growing television platform in partnership with Hall of...
24/02/2026
The NFL and StatusPRO, a sports entertainment and technology company that combines AI and performance data with emerging technology to create experiential conte...
24/02/2026
Pro League Network (PLN), a next-generation sports media and entertainment compa...
24/02/2026
Sportel Asia returns to Singapore for the first time since 2018 on March 24-25 and Agn s Marsan, Executive Director of SPORTEL Asia, says the return to Singapor...
24/02/2026
Join ARRI for a conversation and Q&A with Sports Cinematographer Domenick Satter...
24/02/2026
Veritone, Inc announces a renewal of its agreement with U.S. Soccer to license a...
24/02/2026
Commitment to innovation at network, conference, and institutional levels have i...
24/02/2026
The new RSN, which will produce 140+ games a year, arrives after the Braves exited Main Street Sports and FanDuel Sports Network earlier this month....
24/02/2026
CBS Sports and Concacaf today announced that CBS Sports will be the exclusive En...
24/02/2026
Official Venues Unveiled for Festival's Milestone Colorado Debut in 2027...
24/02/2026
Life needs music. So does the afterlife. That's why Spotify has partnered wi...
24/02/2026
Last weekend, S o Paulo buzzed with energy as Bad Bunny took the stage for two n...
24/02/2026
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...
24/02/2026
Disney Captures 11.9% of TV in January, Boosted by ESPN's ( 82%) College Foo...
24/02/2026
Bitcentral, the leading provider of professional media solutions for broadcast and digital video, today announced that Griffin Media, an Oklahoma-based multimed...
24/02/2026
Intinor announces the appointment of Ideal Systems as an authorized reseller, covering Singapore, Malaysia and Indonesia, and strengthening local access to resi...
24/02/2026
Di TV implements its own nxtedition platform for continuity
Dagens Industri, the popular Swedish financial publisher, has moved to a new base in the Nasdaq bu...
24/02/2026
Appear, a global leader in live production technology, today announced that its X Platform has been officially verified by YouTube for Secure Reliable Transport...
24/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/02/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
24/02/2026
Cobalt Digital, the leading designer and manufacturer of award-winning ST 2110 and SDI signal processing products, and a founding partner in the openGear initi...
24/02/2026
Paul C. Brunson: Red Flag to be produced by FirstLookTV and launch in 2026
UKTV...
24/02/2026
This year, we're back at the Media Production and Technology Show (MPTS) in London. As always, we're looking forward to catching up with existing contac...
24/02/2026
We are pleased to announce that Pete Whiteway is joining the dB Technology Group as a Senior Systems Engineer. Pete brings over 20 years of experience in broadc...
24/02/2026
End-to-End Transparency in the Supply Chain You Can Touch
The team at LogiMAT 2025 - from left: Michael Dreimann, Andr Haff, Nicolas Lapp, Bernd Jaschinski-...
24/02/2026
Katharine Wolinska appointed to lead Partnerships
RT Commercial has announced ...
24/02/2026
AI is accelerating every aspect of healthcare - from radiology and drug discover...
23/02/2026
Dignity Health Sports Park, a multi-use sports complex in Carson, Calif., and Da...
23/02/2026
The Gotham Sports App, the exclusive direct-to-consumer streaming home of MSG Networks and the YES Network, is introducing more choice and value with new packag...
23/02/2026
Cobalt Digital, a designer and manufacturer of ST 2110 and SDI signal processing products, and a founding partner in the openGear initiative, announces that its...
23/02/2026
Telos Alliance, which has specialized in broadcast audio for more than three dec...
23/02/2026
Prompted Playlist is expanding in beta to Premium listeners in the U.K., Ireland...