
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!
Europe Stories
09/11/2025
Dalet today announced a transformative leap forward for media operations: Agentic Artificial Intelligence (AI) that unifies the Dalet ecosystem under one natura...
07/11/2025
Word of mouth has always been at the heart of the Spotify experience, with people sharing music, podcasts, and audiobooks with friends and family millions of ti...
07/11/2025
SLEIGH BELLS RING ARE YOU WINNING?
THE LATE LATE TOY SHOW BIG BIG TICKET GIVEAWAY EXCLUSIVE ACROSS RT CHANNELS
On Friday 21 November, listeners across all R...
07/11/2025
X-Rite to Acquire Select Assets of Rutherford Graphic Products (RGP), LLC (USA) ...
07/11/2025
Friday 7 November 2025
Lioness and Arsenal forward Alessia Russo launched the f...
07/11/2025
-- Building on last year's success at COP29, the three initiator organizati...
06/11/2025
Media organisations from across the globe are uniting to promote media and information literacy (MIL) to help ensure their future survival and win back the trus...
06/11/2025
At Spotify, we're always finding new ways to bring you closer to the music that moves you, turning sound into something personal. From the playlists that ma...
06/11/2025
O mundo est ouvindo a Am rica Latina. Os artistas da regi o est o constantement...
06/11/2025
The world is listening to Latin America. The region's artists are consistent...
06/11/2025
El mundo est escuchando a Latinoam rica. Los artistas de la regi n marcan const...
06/11/2025
After nine months of fiscal year 2025, SGL Carbon generated sales of 652.9 million, down 16.5% on the previous year (9M 2024: 781.9 million). This is attribut...
06/11/2025
Contact information:
Miriam Johnson, Website Lead, Fotoware Group
miriam.johnson@fotoware.com
Oslo, October 2025: As part of our brand unification, the Pic...
06/11/2025
Calrec's 36-fader Argo M in Steiger Media's newly equipped OB truck parked outside the venue will showcase a live remote workflow connected to the Calre...
06/11/2025
06 Nov 2025
VEON Appoints Sebastian Rice as General Counsel Vitaly Shmakov promoted to the newly created Chief Investment Officer role
Dubai, November 6, 2025...
06/11/2025
The prequel to the Sky Original mob crime saga is a six-part drama tracking the ...
06/11/2025
The six-part drama, set in a close-knit Welsh town fractured by an unspeakable c...
06/11/2025
Rohde & Schwarz at productronica 2025: Innovation and production - hand in hand As a trusted partner for electronics manufacturing, Rohde & Schwarz will prese...
06/11/2025
Red Seat Ventures Announces Partnership with Renowned Entrepreneur, Author and M...
06/11/2025
We're delighted to announce the appointment of Max Mehta and Mark Fannon as Junior Systems Engineers, further strengthening our growing Technology team.
Ma...
06/11/2025
RT Announces Alex Walden as General Manager of the
RTE Concert Orchestra
Alex Walden, renowned orchestra manager, most recently for the BBC Concert Orche...
06/11/2025
Actors Steve Coogan and anna Hardwicke will be on the Late Late Show this week ...
06/11/2025
In the third episode of The 2 Johnnies Late Night Lock In actor Danny O'Carr...
05/11/2025
On Monday night, Ed Sheeran and Spotify lit up The Royal Dublin Society in Dublin for a one-night-only performance. The occasion? The third installment of Billi...
05/11/2025
Cumbia has long been woven into daily life in Argentina, and its popularity on S...
05/11/2025
La cumbia forma parte del d a a d a de los argentinos desde siempre, y su popula...
05/11/2025
Earlier this year, our in-house publishing imprint, Spotify Audiobooks, put out ...
05/11/2025
Wednesday 5 November 2025
To view this content, please enable our use of cookie...
05/11/2025
Wednesday 5 November 2025
To view this content, please enable our use of cookie...
05/11/2025
Rohde & Schwarz Mobile Test Summit 2025 on the future of wireless communications...
05/11/2025
Wuppertal November 5, 2025
Riedel RefCam and Easy5G to Make Handball Debut at the Men's EHF EURO 2026The European Handball Federation (EHF) will introduce...
05/11/2025
Comscore and Polaris I/O Partner to Automate Audience Insights in MarketView for...
05/11/2025
New schedule will be live on-air Monday 10 November
Brand-new Today with David McCullagh from 9am
Oliver Callan in all-new extended show from 11am to 1pm
Kie...
05/11/2025
Explore the future with Science Week on RT
Dive into a week of innovative, themed programming and content across RT television, radio and online
Includes a ...
05/11/2025
Get ready for six weeks of United FC, a brand-new, feel-good teen docuseries kic...
04/11/2025
Today, we announced our third quarter 2025 earnings, marking strong momentum as we surpassed 700 million Monthly Active Users and achieved double-digit subscrib...
04/11/2025
Idag rapporterar vi v rt resultat f r det tredje kvartalet 2025, vilket markerar en stark och fortsatt tillv xt d vi passerade 700 miljoner m natliga aktiva an...
04/11/2025
Comscore Reports Third Quarter 2025 ResultsRESTON, Va., November 4, 2025 Comscore, Inc. (Nasdaq: SCOR), a trusted partner for planning, transacting and evalu...
04/11/2025
Damien Moloney as Jim Bergerac
As filming wraps on the highly anticipated second series of Bergerac (6x60'), UKTV today unveils a selection of first look i...
04/11/2025
Tuesday 4 November 2025
To view this content, please enable our use of cookies....
04/11/2025
From the recent SMPTE Media Technology Summit in Pasadena, with FilmLight Image Engineer, Daniele Siragusano, and Research Engineer, Julius Tschannerl.
Matchin...
04/11/2025
Begins Thursday November 6 on RT One and RT Player at 10:15pm
Camogie: Inside...
03/11/2025
Harmonic's cOS Virtualized Broadband Platform Will Further Enhance Broadband...
03/11/2025
Monday 3 November 2025
To view this content, please enable our use of cookies. ...
03/11/2025
Rohde & Schwarz acquires open source intelligence specialist Munich Innovation L...
03/11/2025
Rohde & Schwarz launches revolutionary super wideband mobile network scanner, se...
03/11/2025
ESA, MediaTek, Eutelsat, Airbus, Sharp, ITRI, and R&S announce world's first...
03/11/2025
Nokia and Rohde & Schwarz collaborate on AI-powered 6G receiver to cut costs, ac...
03/11/2025
A4ESSOR and OCCAR sign new procurement contract to advance development of intero...
03/11/2025
Sitep Australia joins Rohde & Schwarz team for Hunter class frigate communicatio...