
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 ...
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...
08/07/2026
The end of the Big A' marks the demise of one more iconic sports venue and its signature sound
After 132 years as one of the preeminent horse-racing track...
08/07/2026
Memphis Athletics and Learfield have signed a long-term renewal to their 25-year relationship, which sees Learfield's Tiger Sports Properties continue repre...
08/07/2026
MLB All-Star Week returns to Philadelphia for the first time in 30 years as Amer...
08/07/2026
Former Wall Street Video event expanded to include all Enterprise sectors
SVG Enterprise has announced the inaugural Enterprise Video Summit, taking place Oct....
08/07/2026
An offseason project enhanced eight video displays around the venue in time for ...
08/07/2026
Kaseya Center has a ton of new features that weren't available to the indust...
08/07/2026
The International Federation of Film Critics (FIPRESCI) and the Sundance Film Festival are pleased to announce the establishment of a FIPRESCI jury beginning wi...
08/07/2026
Latest analogue-emulation plug-ins revealed
Universal Audio have just added two new analogue-emulation plug-ins to their DSP-powered UAD line-up. Developed ...
08/07/2026
Turn any audio loop into a playable kit
Pitch Innovations have recently introduced an interesting new tool that's capable of creating playable kits from...
08/07/2026
Adds new keyboard-split function
MonkeyC have recently launched an update that overhauls their powerful software sampler. Described as the sampler that mad...
08/07/2026
Four new delay algorithms & dual-engine functionality
Strymon have just announced that the much-anticipated MX version of their hugely popular delay pedal i...
08/07/2026
Well over half of Australia have tuned in to watch the FIFA World Cup on SBS
7 July, 2026
Media releases
Australia's Round of 32 match against Egypt a...
08/07/2026
SBS and Koorie Heritage Trust announce three-year partnership to celebrate First...
08/07/2026
Rohde & Schwarz and China Mobile Research Institute jointly demonstrate generati...
08/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/07/2026
Collaboration demonstrates how managed IP distribution and cloud-based syndication workflows can support live television at national scale
Fox Television Stati...
08/07/2026
New ARRI ALEXA 35 Live Xtreme camera seamlessly delivers up to 8x HFR via SDI fo...
08/07/2026
Did You Know? Redshift for Cinema 4D: The Power of the Distance Node
Marc Potocnik July 8, 2026
0 Comments
The Did You Know? Redshift for Cinema 4D ...
08/07/2026
Lightware is introducing the biggest update yet to the LARA Wizard Touchpanel configuration experience, designed to help integrators work faster while deliverin...
08/07/2026
DMC Production has turned to Calrec in its quest to redefine outside broadcasting with a flexible approach to live production that reverse engineers the convent...
08/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/07/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
08/07/2026
Foundry today announced that Reel FX Animation Studios has adopted Flix to standardize their pipeline and streamline processes across departments. Flix is a vis...
08/07/2026
The right team. The right time.' How The Killings at Parrish Station stuck t...
08/07/2026
Australians in Film and Screen Australia launch FUTURE VISION Forward to elevate...
08/07/2026
Film follows the courageous fight for justice by survivors of Ireland's Magdalene Laundries & Mother and Baby Homes
TESTIMONY airs Wednesday 22 July at 9...
08/07/2026
NVIDIA Nemotron 3 Ultra is offering leading performance at lower cost than top c...
07/07/2026
Applications are now open for the Validation Booster, a six-month acceleration programme supporting journalists, media organisations, content creators, media in...
07/07/2026
The Universal Talent Identifier (HAND) has issued HAND IDs to 50 top prospects ahead of the 2026 MLB Draft, including consensus top-ranked players Roch Cholowsk...
07/07/2026
Cisco and the McLaren Mastercard Formula 1 Team have announced an extension of their partnership, expanding the scope from networking and communications to incl...
07/07/2026
LucidLink has announced a workflow integration with Adobe Frame.io that gives production teams unified access to Frame.io projects alongside supporting producti...
07/07/2026
Chyron has announced the appointment of Ahmed Magd as Sales Director for the Middle East. Magd joins from previous senior commercial roles at Riedel Communicati...
07/07/2026
Leader Electronics of Europe has announced that its PHABRIX Qx rasterizer and Le...
07/07/2026
eCLUTCH has announced it has acquired broadcast rights to the Esports World Cup 2026 for EMEA and MENA, covering the Middle East, Africa, the Balkans, Sweden, a...
07/07/2026
Riedel Communications and ARRI supported ORF's host broadcast of the Eurovis...
07/07/2026
ARRI has announced the ALEXA 35 Live Xtreme, a camera that adds high frame rate ...
07/07/2026
LiveU will exhibit at IBC 2026 (Stand 7.C24), showcasing the LU900Q Intelligent Production Unit, expanded Sony collaboration, and additions to its open IP-video...
07/07/2026
Telemundo's coverage is packaged with Multiview, Catch Up with Key Plays, in...
07/07/2026
The Australian Rugby League Commission (ARLC) has announced a seven-year media r...
07/07/2026
Produced onsite at The Star in Frisco, TX, live coverage of the
two-day event airs on ESPN platforms
The season for Football Media Days is here, and the Big ...
07/07/2026
Rogers Communications Inc. has announced an agreement to acquire the remaining 25% ownership stake in Maple Leaf Sports and Entertainment (MLSE) from Kilmer Spo...
07/07/2026
End-to-end broadcast solution includes fleet of mobile units, Cloud Control, and...
07/07/2026
Sports-production-tech experts sound off on the state of the industry...
07/07/2026
New mixer aimed squarely at instrument-level sources
Heritage Audio have clearly been busy recently, as alongside their all-new Tubestrip, they've also ...
07/07/2026
New channel strip combines popular hardware designs
The latest arrival to the Heritage Audio line-up brings together a selection of their praised hardware d...
07/07/2026
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({ content_source:......