
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 ...
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
Partnership delivers personalized viewing experiences and premium advertising experiences across Latin America
Broadpeak , a leader in streaming and monetizati...
01/12/2026
Rise AV, the leading advocacy organisation promoting gender diversity and professional development in the AV, Live and Production Technology sectors, has opened...
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: , er...
01/12/2026
New integration connects Blue Lucys rights-aware content management platform with Moments Lab's AI platform, so teams can find, compile and publish archive ...
01/12/2026
LA JOLLA, CA-One cheap and reliable, albeit stinky tool has become an increasing...
01/12/2026
Beam Dynamics Introduces MCP for Faster, Smarter Technology Operations
Brie Clayton November 30, 2026
0 Comments
Beam Dynamics has introduced new Model ...
01/12/2026
Multi Platform Healthcare Campaign Captured on URSA Cine 12K LF
Brie Clayton November 30, 2026
0 Comments
Craftshow Digital completes Singing River He...
01/12/2026
Gravity Media acquires MOOV to expand broadcast graphics and virtual production ...
01/12/2026
OZ Racing's Rally Legend Shot on URSA Cine 12K LF and PYXIS 12K
Brie Clayton November 30, 2026
0 Comments
From rugged mountain trails to high spee...
01/12/2026
There's no shortage of seasonal silliness this Christmas, as RT serves up a festive feast of comedy across its platforms. From laugh-out-loud specials and ...
01/12/2026
The Toy Show Appeal has raised more than 31.2 million for children's charit...
01/12/2026
As agents begin to act on a user's behalf, open source technologies enable u...
01/12/2026
A first-of-its-kind approach to quantum error correction using NVIDIA Groq 3 LPX...
01/12/2026
NVIDIA is introducing Model Risk Bench, a suite that builds on joint risk-management and evaluation work with Microsoft and contributions from the broader ecosy...
01/12/2026
Across the U.S., NVIDIA and its partners are expanding manufacturing capacity to...
01/12/2026
Robots are expanding what American workers can accomplish, with advancements in ...
01/12/2026
NVIDIA and U.S. life sciences leaders are using AI to advance biomedical researc...
01/12/2026
Fusion could become a new source of abundant energy, but harnessing it requires ...
01/12/2026
Satellite data helps communities detect wildfires, monitor crops and respond to ...
01/12/2026
Wireless networks are built to connect devices, but the same signals can also help them understand the physical world.
NVIDIA Aerial Sense, a new open source ...
30/11/2026
MASV, the global file transfer platform built for teams moving massive content a...
30/11/2026
Free registration for THE SVG SUMMIT closes on Dec. 1 at 5 p.m. ET, so don't miss out! After the deadline, tickets will cost $150 to attend the event. CLICK...
30/11/2026
ABY & Pro amp switcher models introduced
Guitar power supply and switching experts Voodoo Lab have just revealed two products that build on the foundations ...
30/11/2026
New eight-bit digital VCO announced
ALM/Busy Circuits' latest Eurorack module combines the immediacy of an analogue VCO with the flexibility of digital ...
30/11/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...
30/11/2026
Combination creates a leading independent media intelligence platform across all workflows and channels.
New York, NY - November 30, 2026 - Nielsen Holdings ( ...
30/11/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...
30/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...
30/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...
30/11/2026
DPA Microphones is proud to announce that two of its innovative audio solutions have been named as finalists in the 2027 NAMM TEC Awards. This includes the 4097...
30/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...
30/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...
30/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...
30/11/2026
For Lightware, 2026 has been a year of continued progress, marked by significant developments across its connectivity and control portfolio. Alongside advancing...
30/11/2026
Hiltron Communications reports a successful Space Tech Expo Europe 2026, held from Tuesday 17 through Thursday 19 November across five halls of the Messe Bremen...
30/11/2026
Calrec will be located at Stand 4P800.
Broadcast and Pro AV united
ISE 2027's theme, When Worlds Unite, reflects Calrecs own approach. Stadiums, univers...
30/11/2026
CGI (TSX: GIB.A) (NYSE: GIB), one of the largest independent IT and business consulting services firms in the world, today launched OpenMedia Evolve, the next g...
30/11/2026
Monday 30 November 2026
Dan Borrelli joins Sky as Head of YouTube
Sky has appointed Dan Borrelli as Head of YouTube for Sky Entertainment Group, in a newly cr...
30/11/2026
Monday 30 November 2026
Sky News launches Ask Sky News, a new way to search and explore the news
AI-powered feature lets audiences ask questions, get answers ...
30/11/2026
RedNet TNX delivers mission-critical redundancy for Chicago-based live sound eng...
30/11/2026
CUPERTINO, CALIFORNIA Apple today announced an all-new (RED) collection - includ...
30/11/2026
Apple Music today debuted Replay '26, a redesigned look back at the year in ...
30/11/2026
Today, Apple Podcasts unveiled the most popular podcasts of 2026, celebrating th...
30/11/2026
Launching the first of three Christmas content announcements this week, RT is s...
29/11/2026
Combines compression, saturation & EQ
Said to be the easiest way to turn your sound all the way to 11 , fedDSP's latest release brings together compres...
29/11/2026
New Life for the Original Symphony I/O: An Independent Software Project With Apogee's cooperation, an independent developer is helping bring the original Sy...
28/11/2026
Cubase & FL Studio integration improved
Melbourne Instruments have just released the latest update for their motorised MIDI controller, adding Cubase and FL...