
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 ...
02/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
02/12/2026
Circle Studios and ionoco today announced a global partnership to develop and deliver dynamic, interactive and gamified experiences for clients around the world...
02/12/2026
Media postgraduates at Complutense University in Madrid will once again gain hands-on experience with professional live broadcast and Pro AV technology this Dec...
02/12/2026
Blue Lucy, the workflow orchestration and integration platform for broadcasters, rights owners and production companies, today announced a new integration conne...
02/12/2026
Inside the Palais Garnier with URSA Cine Immersive
Brie Clayton December 1, 2026
0 Comments
INIT Lab produces an extended run Apple Immersive Video ex...
02/12/2026
Berklee Music and Health Institute to Lead National Coalition Advancing Musics R...
02/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
02/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
02/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...
02/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
02/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
02/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
02/12/2026
Miris, a 3D streaming infrastructure provider, and Evercast, a leading provider of real-time media review tools, today announced the beta of an Evercast Present...
02/12/2026
QuickLink, the leading provider of multi-camera video productions and remote contribution solutions, announces the launch of StudioPro Ascent and StudioPro Ap...
02/12/2026
Settle in for Documentaries, Sport, Entertainment and more
Festivities begin as Christmas kicks off on RT with The Late Late Toy Show, a packed weekend of liv...
02/12/2026
RT Supporting the Arts is proudly rounding off the year with a vibrant programme of events and exhibitions celebrating creativity across theatre, opera, film, ...
01/12/2026
William Kamau, a journalist with the investigative media house Africa Uncensored in Nairobi, has been named Thomson Foundation Young Journalist of the Year 2026...
01/12/2026
Gravity Media has acquired MOOV, a UK broadcast graphics and virtual production ...
01/12/2026
Ateme and CAASTV have announced that PanMetro (Pan Metro Convergence) and Allian...
01/12/2026
CP Communications provided broadcast engineering and production support for Live With Kelly & Mark in Clearwater Beach, FL, Nov. 16-17.
A 10-person crew led by...
01/12/2026
Riedel Communications supported the Klangwolke festival in Linz with a DIVA+ infrastructure. On behalf of Linzer Veranstaltungsgesellschaft (LIVA), Riedel Manag...
01/12/2026
TF1, France's private broadcaster, has chosen Ateme as its technology partner for TF1 . Ateme supports the service on TF1's own apps, connected TVs, ope...
01/12/2026
The Alliance for IP Media Solutions (AIMS), together with the Video Services Forum (VSF) and the European Broadcasting Union (EBU), has announced the next IPMX ...
01/12/2026
Clark Wire & Cable supplied broadcast infrastructure cable, panels and SMPTE com...
01/12/2026
Over the past three decades, no sports entity has set a higher bar for storytell...
01/12/2026
Sports media has become one of the few reliable growth areas in an otherwise slu...
01/12/2026
Studio 61 will feature four production sets, more than 30 cameras, aerial systems, AR, and nearly 100 hours of live programming during Super Bowl week...
01/12/2026
On-site activation will use touchscreen inputs and Anamorph technology to assemb...
01/12/2026
ESPN Deportes has announced its commentary team for Super Bowl LXI: Rebeca Landa...
01/12/2026
With Super Bowl LXI 75 days away, ESPN and The Walt Disney Company have announce...
01/12/2026
ESPN and ABC will punctuate ESPN's Year of the Super Bowl with 10 hours of live programming from Disneyland Resort in Anaheim, CA, on Monday, Feb. 15, mere ...
01/12/2026
Five-hour Super Bowl LXI Countdown, multiple studio locations, Disney+ simulcast...
01/12/2026
As ESPN prepares for its historic first Super Bowl presentation, the network wil...
01/12/2026
Disney+, Hulu, and ESPN App will carry Live From Super Bowl LXI Red Carpet from the NFL VIP Tailgate at SoFi Stadium...
01/12/2026
To help determine where the industry stands, SVG AI Innovation Lab analyzed and ...
01/12/2026
Peyton Manning and Rich Eisen will host the hour-long ESPN Original, produced with NFL Films and The Montag Group...
01/12/2026
By Jason Dachman and Ken Kerschbaumer
ESPN today took some additional wraps off of its Super Bowl LXI plans, including more details about ESPN Beach will prese...
01/12/2026
Audio inputs, backing playback, PDF support & more
In the April 2026 issue, we ran a review on StageBox, a handy macOS and Windows application designed to h...
01/12/2026
Three new high-gain amps added
Universal Audio's all-in-one amp and effects modelling software has just been treated to a major update that introduces t...
01/12/2026
Innovative instrument gains virtual counterpart
Telepathic Instruments have just released a new plug-in that recreates their innovative Orchid instrument, a...
01/12/2026
Vintage-inspired effects suite revealed
Waves latest release brings together a set of creative effects plug-ins that promise to capture the sound and charac...
01/12/2026
Rohde & Schwarz and Zurich Instruments back the London Quantum Cluster to suppor...
01/12/2026
Nielsen has released its Top 25 Live Sports Events Telecasts ranker for the week of November 16 - November 22. The list highlights a dynamic week in sports broa...
01/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
01/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
01/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
01/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
01/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...
01/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , err)}) data-platform=copy_link data-action= class=font-ui-heading py-2 text-sm tex...