
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 ...
09/10/2026
September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026
New Sports Intelligence helps providers better unders...
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...
01/10/2026
Big Blue Marble has announced the addition of live multiview channels to its Clo...
01/10/2026
The company CEO sees AI as a tool in speeding and enhancing product development
...
01/10/2026
Production, tech, crewing, and logistics teams draw on experience of a busy inau...
01/10/2026
The Partnership Will Support Filmmakers Worldwide Through Original Short Films I...
01/10/2026
Third collaboration with celebrated composer
Spitfire Audio have once again teamed up with Grammy-nominated composer, producer and technologist BT, creating...
01/10/2026
FL Studio gets dedicated grid controller
Novation have teamed up with FL Studio developers Image-Line to create another dedicated controller for the popular...
01/10/2026
Six new USB interfaces introduced
Universal Audio's USB audio interface line-up has just been refreshed, gaining six new models aimed at musicians, prod...
01/10/2026
Siretta's SNYPER-5G cellular network analyser has been shortlisted for the IoT Global Awards 2026.
The IoT Global Awards recognise products, services and o...
01/10/2026
Johannesburg, South Africa, 30 September 2026 - The National Film and Video Foun...
01/10/2026
Mesh Broadcast Services Fits Big-Truck Audio Power into Compact Eclipse Unit with Calrec Argo M Canadian OB company Mesh Broadcast Services has fitted its Eclip...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
For more than two decades, Disguise has powered some of the most ambitious live events and experiences in the world from Bad Bunny and Coachella to the Burj K...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
The Australian football team can turn match footage into tactical insights to improve performance and maximize fan engagement
Vizrt, the AI platform for visual...
01/10/2026
When Mesh Broadcast Services set out to fit the pro audio capability of a large TV truck into a small audio room for high-profile sports events, Calrecs Argo M ...
01/10/2026
Emergent, the browser-native broadcast graphics platform, today announced the appointment of Tom Shelburne as Head of Business Development, North America, effec...
01/10/2026
Melbourne, Australia 1 October 2026: Mediaproxy, the global standard for software-based IP compliance monitoring and multiviewing solutions, will showcase maj...
01/10/2026
Clear-Com is supporting the education and development of future audiovisual industry professionals in Poland through the deployment of its Arcadia Central Sta...
01/10/2026
Telef nica Servicios Audiovisuales (TSA), the audiovisual services arm of global telecommunications group Telef nica, has supplied and commissioned an LED wall ...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
01/10/2026
Eleven minutes between headliners. The sponsor loop needs to be on screen now, and the only operator on hand is the one running lights. With the Green Hippo Est...
01/10/2026
DigiBox has announced a new partnership with FOR-A to represent the innovative MixBoard product range in the UK market, further expanding its portfolio of broa...
01/10/2026
Screen Australia-funded documentaries bring Australian experiences and new persp...
01/10/2026
Mavis Camera 8.2 adds iPhone 18 Pro support with variable aperture control
Brie Clayton September 30, 2026
0 Comments
Latest release also introduces P...
01/10/2026
Ghosts of the Gold Rush Shot with PYXIS 6K
Brie Clayton September 30, 2026
0 Comments
Blackmagic Design cameras expertly capture documentary while del...
01/10/2026
RE:Vision Effects - RSMB V7 is here!
Lori Freitag September 30, 2026
0 Comments
ReelSmart Motion Blur 7 is here, the RSMB V7 cycle is open. ReelSmart ...
01/10/2026
VideoGen raises $3.3M seed as its AI video platform passes 5 million users
Brie Clayton September 30, 2026
0 Comments
VideoGen co-founders Anton Koeni...
01/10/2026
New taproom, restaurant, lounge and theater in the historic Power Plant add to ATC's growing social hub
Fullsteam Brewery and CBC Real Estate celebrate th...
01/10/2026
Berklee and APM Music Launch Global Catalog Bringing Student-Created Music to Fi...
01/10/2026
X-Rite Pantone Launches Spectura to Advance Connected Color Quality from Lab to ...
01/10/2026
ITVX AND WARNER BROS. DISCOVERY ANNOUNCE NEW BRANDED CONTENT PARTNERSHIP
QUEST
TLC
Under a new branded content partnership between Warner Bros. Disco...
01/10/2026
Save $50 on Ivory 3 American Concert D and German DThis fall, bring the sound and expressive character of two world-class concert grands into your studio with s...
01/10/2026
Thursday 1 October 2026
Nominees revealed for 2026 Sky Arts Awards
Current slide, 0 0, undefined1
0
Irish National Opera and Jennifer Walshe: MARS
Jacob Al...
01/10/2026
Vital TV antenna replaced at SudburyHelicopter and broadcast engineers work together to upgrade TV services for 1.5M in the East
--
Share to Linkedin
Octobe...
01/10/2026
Arqiva appoints Simon Duffy as ChairSimon Duffy joins as Chair effective 01 October 2026
--
Share to Linkedin
October 1, 2026
Press Office
01 October 2026...
01/10/2026
Season 4 of the multi-award-winning hit entertainment series The 2 Johnnies Late Night Lock In is back, serving up another round of unpredictable laughs, unforg...
01/10/2026
New season begins Sunday, 4 October at 6pm on RT lyric fm and RT Listen
RT lyric fm's arts and culture documentary series The Lyric Feature returns on S...
01/10/2026
RT is proud to continue its commitment to supporting and celebrating the arts across Ireland this October, highlighting a vibrant programme of theatre, music, ...
01/10/2026
AI factories are built by the megawatt, even by the gigawatt. Each megawatt fact...
01/10/2026
Spooky season is streaming in. Alongside falling leaves, pumpkin spice and everything nice, 25 new games are joining GeForce NOW throughout October, including s...