
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 ...
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...
06/09/2026
June 9 2026, 23:00 (PDT) Dolby and MagentaTV Bring Fans Closer to the FIFA Worl...
04/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
14/07/2026
South end zone videoboard, cloud-based control system will be ready for 2026 football season...
14/07/2026
Redesigned website, enhanced mobile app unify content, ticketing, and personalized fan engagement...
14/07/2026
Agreement spans sponsorship sales, digital monetization, radio production, and new practice facility naming rights...
14/07/2026
Independent league adds 14 regional sports network affiliates, growing distribut...
14/07/2026
New strategy aims to unify competitions, content, fan engagement, and commercial...
14/07/2026
ESPN and Disney+ become exclusive home of PFL events in key international MMA market...
14/07/2026
Gill will oversee engineering, technology, and sports operations across the company's 64 local television stations...
14/07/2026
Submitted by North American Broadcasters Association (NABA)
As broadcasters con...
14/07/2026
Modernized mobile unit combines HOME Apps, mc 56 console, and IP infrastructure ...
14/07/2026
Every match of the 32-team tournament will air across ION and Scripps Sports platforms in English and Spanish...
14/07/2026
FloHockey to stream every game of the annual international tournament under four...
14/07/2026
Victory+ telecasts to be simulcast on TEGNA-owned station, expanding free local distribution...
14/07/2026
Plug-ins for heavy music
Avalanche Tones is the brainchild of Ava Toton, a 17-year-old musician and developer who says her goal is to make the lives of gui...
14/07/2026
Launched alongside new Singer Showcase purchase model
IK Multimedia's innovative vocal-synthesis software has just gained its latest voice add-on, the R...
14/07/2026
Registration open until 1 September 2026
The MIDI Association have revealed that the registration deadline for this year's MIDI Innovation Awards has no...
14/07/2026
88-note model completes MK4 range
Novation have just introduced the final model in their flagship MIDI controller keyboard range, the Launchkey MK4 88. Roun...
14/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/07/2026
IBC2026 has unveiled a powerful Conference programme bringing together global media leaders, technology innovators, creators, sports organisations, broadcasters...
14/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/07/2026
Broadcast Solutions, a leading systems integrator and provider of innovative solutions for the broadcast media industry, has delivered two highly capable outsid...
14/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
14/07/2026
Techtel Successfully Relocates AICD Broadcast Studio to New Sydney Headquarters
BroadcastBroadcast EquipmentLive StreamingBroadcast Studio2026
14 July Writ...
14/07/2026
Tuesday 14 July 2026
First look revealed for Friday the 13th prequel, Crystal ...
14/07/2026
When immersive audio dominates industry headlines, it's easy to assume that every broadcaster is preparing for an Atmos future. The reality is quite differ...
14/07/2026
Emma and Sophie from ICG's marketing team joined thousands of fellow marketers, brands and agencies at MAD//Fest London 2026, one of the UK's biggest ma...
14/07/2026
Why Trusted and Secure Media Operations Matter In this series, we explore the technologies, architectures and operational realities shaping modern media operati...
14/07/2026
Pilot Project Shows How Retailers Are Prepared for the Next Step in the Evolution of Digital Commerce
Arvato Systems Drives Agentic Commerce Forward
G terslo...
14/07/2026
As part of this commitment, weve joined the SME Climate Hub, publicly pledging to:
measure our greenhouse gas emissions
reduce them in line with a net zero p...
14/07/2026
Power is AI infrastructure's inescapable constraint. How many tokens an AI factory can generate within a fixed power budget determines its revenue and profi...
13/07/2026
The Braves opted to keep production in-house rather than hand it off to MLB...
13/07/2026
Behind The Mic provides a roundup of recent news regarding on-air talent, including new deals, departures, and assignments compiled from press releases and repo...
13/07/2026
Eurovision Sport is making live athletics more accessible to fans than ever befo...
13/07/2026
The Milwaukee Bucks will return to full-season over-the-air television for the 2...
13/07/2026
SMPTE has announced an expanded education pathway for media technology professio...
13/07/2026
Vizrt has announced that its graphics technology was used by broadcast design agency Girraphic for Netflix's debut MVP MMA event, broadcast live from the In...
13/07/2026
ARRI has announced an agreement to sell its global rental activities in Europe, the United Kingdom, and North America to H2 Equity Partners through a management...
13/07/2026
DAZN has announced a partnership with Premier Boxing Champions (PBC) to bring PBC fight nights to DAZN subscribers globally. The partnership begins Saturday, Ju...
13/07/2026
TikTok and WSC Sports have announced a strategic partnership that gives sports r...
13/07/2026
Two new Ross products -Brushback: Full Count and CapGo - are debuting at Citizens Bank Park All-Star festivities...
13/07/2026
MSG Networks' was given exclusive access during the Knicks' unforgettabl...
13/07/2026
LOS ANGELES, July 13, 2026 - Sundance Institute today announced the 10 producers selected to participate in its annual Producers Labs taking place July 13-18 fo...