
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 ...
11/11/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...
11/11/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...
11/11/2026
New partnership strengthens local access to Hitomi s precision timing solutions, with MatchBox, MatchBox Glass and Spectra on show at Inter BEE 2026
Hitomi Br...
11/11/2026
Frequency, the engine behind many of the worlds leading streaming television channels, and OpenGlass, the first SSP built for advanced CTV advertising, today an...
11/11/2026
Operative today announced the appointment of Brian Beirne as Senior Vice President, Commercial Growth. Beirne returns to Operative at a pivotal moment, as its U...
11/11/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...
11/11/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...
11/11/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...
11/11/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...
11/11/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...
11/11/2026
Flanders Scientific (FSI), an Atomos company, has introduced seven new QD-OLED reference monitors across two new series, the VP and V. Designed for professional...
11/11/2026
Pliant Technologies' highly anticipated CrewCom Flex product line is now shipping in the United States. As the industry's first frameless matrix interc...
11/11/2026
Desert Palms Captured with Blackmagic URSA Cine Immersive
Brie Clayton November 10, 2026
0 Comments
Director Tristan Seniuk premieres immersive short ...
11/11/2026
Avid launches Ready to Play, putting new AI creative capabilities into editors...
11/11/2026
Adobe Powers a New Era of Creativity, Bringing Agents and Tools to Creatives Whe...
11/11/2026
RT lyric fm is partnering with the Department of Climate, Energy, and the Envir...
11/11/2026
RT TODAY show has announced the eight finalists for its festive amateur cook competition Christmas Home Cook'.
Following the success of TODAY TV Home C...
10/11/2026
ENCO provided live stage captioning, multilingual translation and new audio pass-through services at NAB Show New York, held Oct. 21-22 at the Javits Center, an...
10/11/2026
Vizrt has built a proof-of-concept integration with the Story Object Model (SOM), shown at IBC 2026 in Amsterdam as part of the Smart Stories Accelerator projec...
10/11/2026
Gravity Media's Creative and Managed Services team produced a dedicated live 9:16 vertical broadcast workflow for Meta Connect 2026. Meta asked for more tha...
10/11/2026
Blue Stream Fiber has standardized its OTT streaming services on Ateme's end-to-end video platform for its high value linear channels, providing more effici...
10/11/2026
Haivision has opened the survey for its 2027 Broadcast Transformation Report, inviting broadcast, media, and production professionals worldwide to share their p...
10/11/2026
The League of Live Stream Theater (LOLST), the nonprofit organization partnering...
10/11/2026
USA Sports and The Horse Racing League (HRL) has announced a partnership to air ...
10/11/2026
Matrox Video has launched The Sync, a new video podcast series bringing together Matrox Video experts, customers, and partners to explore the technical and busi...
10/11/2026
The CW Network and Professional Bull Riders (PBR) have announced a new multi-yea...
10/11/2026
There is a certain irony that Chip Adams was turned down when he first looked in...
10/11/2026
Pliant Technologies' CrewCom Flex product line is now shipping in the United States. As a frameless matrix intercom system and complete matrix IP-based inte...
10/11/2026
PARK CITY, Utah (November 10, 2026) The Sundance Institute today announced the appointment of Allison Graff-Weisner as its new Chief Development Officer (CDO)...
10/11/2026
New tool humanises orchestral MIDI parts
Described as a session musician inside your DAW, VSL's latest plug-in aims to make quick work of making program...
10/11/2026
Free EQ launched alongside four major updates
PSPaudioware have just launched their latest free plug-in, along with a set of updates that bring modern OS co...
10/11/2026
Save 25% throughout November 2026
Following the recent release of Cubase 16, regular SOS contributor John Walden has announced that he will be running a 25%...
10/11/2026
Set to launch in early 2027
The latest version of Ableton's DAW software has just been unveiled, and will be making an official appearance in early 2027...
10/11/2026
IoT devices use a wide range of frequency bands below 6 GHz, from Sub-GHz LPWAN sensors to 5G and Wi-Fi systems. Lower frequencies such as 433 MHz, 868 MHz, 915...
10/11/2026
A ceramic patch GPS antenna may fit mechanically but still perform poorly if it is too small, incorrectly orientated, placed near noisy electronics or installed...
10/11/2026
A GPS antenna ground plane provides the conductive RF reference a ceramic GPS/GNSS patch needs, but that does not always mean the product PCB must provide it. T...
10/11/2026
An external GPS antenna is usually the better option when the product enclosure ...
10/11/2026
New R&S FNH combines spectrum analysis, vector network analysis and power meteri...
10/11/2026
eds3_5_jq(document).ready(function($) { $(#eds_sliderM519).chameleonSlider_2_1({...
10/11/2026
Buyers can now access custom CTV deals across on-demand and live content
NEW YORK, November 10, 2026 - Gracenote, Nielsen's content intelligence business, ...
10/11/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...
10/11/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...
10/11/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...
10/11/2026
Clear-Com supported On Air 2026, a 24-hour student-led broadcast connecting 45 universities across 30 countries. Using Station-IC virtual intercom panels, an ...
10/11/2026
Matrox Video today announced the launch of The Sync, a new video podcast series bringing together Matrox Video experts, customers, and partners to explore the t...
10/11/2026
Adobe Brings Agentic AI to the Content Supply Chain with CX Enterprise Coworker
Brie Clayton November 10, 2026
0 Comments
Adobe empowers brands to bui...
10/11/2026
Amplify Berklee Gala Raises More Than $1.3 Million for Berklee City Music Schola...
10/11/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...
10/11/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...