
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/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/03/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
25/03/2026
Starfish highlights flexible TS Splicer releases and new Monitoring Dashboard at...
25/03/2026
XLNTSOUND Elevates Video Production with Blackmagic Design
Brie Clayton March 24, 2026
0 Comments
Audio company upgrades workflow with Blackmagic Cine...
25/03/2026
First Time Exhibitor IPC Introduces One Link Keypanels for One Connect Intercom ...
24/03/2026
Utah Scientific to Showcase a Variety of Hybrid SDI/IP Innovations at the 2026 N...
24/03/2026
Mediaproxy will showcase an updated version of its LogPlayer interface at NAB Sh...
24/03/2026
C gep de Jonqui re, a public college in Qu bec, has upgraded its TV studio complex with five Calrec Brio consoles and a Dante IP network. The installation was c...
24/03/2026
The American Association of Professional Baseball (AAPB) has announced new and r...
24/03/2026
National Telecom Public Company Limited (NT) used Ateme's KYRION platform fo...
24/03/2026
Grass Valley has expanded its relationship with ImSoPROD, the TV production entity of FDJ United, with the deployment of LDX C98 compact cameras across its nati...
24/03/2026
The E.W. Scripps Company is launching Scripps Sports Network (SSN), a free, ad-s...
24/03/2026
NEP Group has launched NEP Platform, a new software orchestration system that un...
24/03/2026
Daktronics has partnered with the Arizona Diamondbacks to design, manufacture and install a new LED video display and three ribbon boards at Chase Field in Phoe...
24/03/2026
Grass Valley has completed an upgrade of University of Pittsburgh Athletics'...
24/03/2026
Daktronics is upgrading eight LED displays at Wrigley Field in Chicago, totaling more than 8,300 square feet, using the Daktronics Renew product line. The upgra...
24/03/2026
Advanced Systems Group has appointed Kevin Poole as Senior Project and Support Manager within the ASG Workflow and Tools practice. The position is newly created...
24/03/2026
In an increasingly streaming-centric world, protecting high-value live sports co...
24/03/2026
Mediaproxy will showcase an updated version of its LogPlayer interface at NAB Show, April 19-22 in Las Vegas, booth W1423. The update includes AI tools, native ...
24/03/2026
The production studio has worked with content juggernauts such as MrBeast, The R...
24/03/2026
The event will also feature a State of the Industry address from sports-media veteran and strategic advisor Patrick Crakes....
24/03/2026
Victory , a free sports streaming service owned by A Parent Media Co. (APMC), has launched its NWSL Sunday Night Soccer franchise. The platform says the launch ...
24/03/2026
Sports content in free streaming is still relatively scant, but it's growing, right along with its monetization capabilities
Streaming-tech company Wurl re...
24/03/2026
Directed by Greg DeHart, the doc will feature Sports Broadcasting Hall of Famers...
24/03/2026
For the first time ever, Tubi - Fox's free streaming service - is working w...
24/03/2026
As the music industry gathers for Canada's Juno Awards, the local edition of...
24/03/2026
Behind every great song is a complex web of people, stories, and inspirations th...
24/03/2026
Few filmmakers have shaped popular cinema as profoundly as Steven Spielberg. So ...
24/03/2026
Latest Eurorack modules revealed
ALM/Busy Circuits have just introduced another two Eurorack modules, delivering a powerful new modulator that builds on the...
24/03/2026
Smallest, most affordable MPC to date
Akai Pro have just introduced their most accessible standalone sampler to date, making the iconic MPC experience avail...
24/03/2026
Create & manage presets on Windows & macOS
Electro-Harmonix have announced that their free Mac/Windows application now allows users of their Oceans Abyss re...
24/03/2026
Rohde & Schwarz amplifiers enable high-field immunity testing expansion at IB Le...
24/03/2026
The National Film and Video Foundation (NFVF) invites eligible Tier 1 and 2 South African production companies to submit proposals to serve as the Facilitating ...
24/03/2026
L3Harris ramps up production of its VAMPIRE C-UxS system....
24/03/2026
For more than 70 years, L3Harris has delivered essential fuzes and safe-and-arm solutions that bring the might to multi-domain battlefields across the globe, ...
24/03/2026
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...
24/03/2026
Rick Bernier reflects on a career that has taken him to the very top of live broadcast audio. As a Senior Broadcast Audio A1 Engineer and Music Director, he has...
24/03/2026
Grass Valley has strengthened its long-standing relationship with ImSoPROD, the TV production entity of the FDJ United, with the deployment of Grass Valley LDX ...
24/03/2026
At the 2026 NAB Show in Las Vegas, Utah Scientific will spotlight its expanding portfolio of hybrid SDI/IP routing, conversion, control, and signal management s...
24/03/2026
Fresh off its global reveal at ISE 2026 in Barcelona, the new V410 live 4K encoder/decoder from Miri Technologies Inc. will make its North American debut at the...
24/03/2026
Cinegy GmbH, premier provider of software-defined television technology, will show how its solutions answer the real challenges facing content creators and broa...
24/03/2026
Canberra-based radio and online broadcast network ArtSound FM (https://artsound.fm/) has invested in DHD audio mixing consoles for two new studios at its headqu...
24/03/2026
IBC today announced the nine projects selected for its 2026 Accelerator Media Innovation Programme, bringing together organisations from across broadcast, strea...
24/03/2026
Mediaproxy, the global standard for software-based IP compliance monitoring and multiviewing solutions, will showcase the next generation of its industry-leadin...
24/03/2026
Underscoring its global reputation as one of Canada's most renowned colleges for television production, the C gep de Jonqui re public college in Qu bec has ...