
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 ...
04/12/2026
Thomson Foundation co-hosted a discussion in Toronto on 17 November as part of The Globe and Mail Foundation's public event series Editing Democracy. The pa...
04/12/2026
Expanded role unifies the network's content, programming acquisitions, and m...
04/12/2026
Targeting new, digital-native audiences, the league uses the data to complement its broadcasts, possibly to add betting opportunities and even for the athlete...
04/12/2026
Longtime ESPN and Disney executive to spearhead AI transformation, business deve...
04/12/2026
Live 180-degree immersive productions for Meta Quest and unique overhead camera ...
04/12/2026
In-venue and creative video staffers at the professional and collegiate level ha...
04/12/2026
ESPN's first-ever Super Bowl production will reach well beyond the broadcast...
04/12/2026
The 2026 SVG Summit is fast approaching and will host the industry's largest exhibit of sports-specific production gear. This week leading up to the Summit,...
04/12/2026
Most Valuable Promotions (MVP) has named Prime Video and DAZN as the U.S. pay-per-view distributors for Jake Paul vs. C dric Doumb , set for Thursday, Dec. 24, ...
04/12/2026
Indonesian broadcaster Kompas TV has replaced its legacy graphics platform with ...
04/12/2026
The Confederation of African Football (CAF) has chosen Medialuso, part of IMAGIN...
04/12/2026
Every story begins with a voice, and the voices featured in Evidence of Self and...
04/12/2026
Vizrt has integrated Viz Engine 5.6 with Gaussian Splatting, enabling the captur...
04/12/2026
Eutelsat will target the launch of 32 new OneWeb Low Earth Orbit (LEO) satellites no earlier than Sunday, Dec. 6 at 10:54 a.m. ET. The satellites will launch ab...
04/12/2026
The West Coast Conference has secured new media rights agreements with longtime ...
04/12/2026
An explanation of AI agents and sub-agents, how they work, and the environments they run in
Agentic AI is much discussed but often misunderstood, so we thought...
04/12/2026
Latest key- and scale-aware plug-in announced
Scaler Music's latest release puts their patented harmonic technology to work in a versatile tone-shaping ...
04/12/2026
Latest drum & bass sample pack released
Headroom Samples are an independent label that specialise in creating sounds for electronic music, and while users a...
04/12/2026
Classic compact mic returns to line-up
Milab have just reintroduced a new and improved version of one of their most popular mics, the DC-96.
The design was...
04/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...
04/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...
04/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...
04/12/2026
Berklee Announces Spring 2027 Signature Series This years concerts feature Grammy-winning artist Sheila E., musical traditions of the African diaspora, and tr...
04/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...
04/12/2026
MainStreaming, the innovative Edge Video Delivery Network, today announced that it has been named a Niche Player in the 2026 Gartner Magic Quadrant for Edge D...
04/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...
04/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...
04/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...
04/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...
04/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...
04/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...
04/12/2026
Explore the new X Series and Mapping Matter; Watch talks from Bad Bunny's team and more
Disguise, the technology company powering some of the world's m...
04/12/2026
What can I watch on UKTV and stream on U this week?
This week on UKTV and the free streaming service U, viewers can watch a range of new and returning programm...
04/12/2026
We're kicking off Give Back Fridays 2026 by bringing our creative skills to The Big Food Project.
Everyday the Blackpool-based charity collects surplus foo...
04/12/2026
Tune in tonight at 9.35pm on RT One and worldwide on RT Player
#LateLateToyShow
Great Scott! The Late Late Toy Show is almost here!
This year's Toy Sho...
04/12/2026
Featuring All-New Samples of the Legendary B sendorfer 290 Imperial GrandFew concert grands possess the extraordinary presence and unmistakable character of the...
03/12/2026
Appear has announced that TV Globo has completed a proof of concept (POC) using its X20 Platform to support live transmissions based on Brazil's TV 3.0 stan...
03/12/2026
ESPN, in collaboration with NFL Films and Anamorph, has unveiled Super Bowl Gen...
03/12/2026
As live productions become more sophisticated and complex, storage servers behin...
03/12/2026
Registration is open for NAB Show 2027, taking place April 3-7 at the Las Vegas Convention Center, with exhibits April 4-7. The show brings together broadcaster...
03/12/2026
You're never going to kill storytelling, because it's built in the human...
03/12/2026
Rise AV, an advocacy organization promoting gender diversity and professional de...
03/12/2026
Riedel Communications has named Pino Barile to lead its Americas organization as President Americas, effective Jan. 1, 2027. He succeeds Joyce Bente, who will l...
03/12/2026
ARRI has appointed Joyce Bente President and CEO of ARRI Americas Inc., effective Jan. 1, 2027. Based in Los Angeles, she will lead ARRI's business across t...
03/12/2026
Media postgraduates at Complutense University in Madrid will again get hands-on ...
03/12/2026
Telos Alliance has announced that Omnia XII, its new flagship FM/HD/DAB audio processor, is now shipping. The company says it draws on audio processing work fro...
03/12/2026
IMG has launched its Digital Trends Report 2027, identifying the technologies, behaviors and cultural shifts it expects to shape the sports and media landscape ...
03/12/2026
Principality Stadium's Dragon's Breath response to the All Blacks haka...
03/12/2026
DTVKit has released a whitepaper finding that the broadcast industry's next ...