
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 ...
29/10/2026
Jameis Winston and Willie Colon are among current and former players hosting pro...
29/10/2026
After arriving in Fayetteville with dreams of calling games, the Arkansas native found her passion in the control room, building a promising future in replay an...
29/10/2026
The National Hockey League is taking on a larger role in local game production w...
29/10/2026
Media Links has appointed Mikhail Zavalin Market Development Technical Specialis...
29/10/2026
Gravity Media delivered the live broadcast and media infrastructure for the 2026...
29/10/2026
Rise AV has announced the 23 women selected for the second year of its Elevate program, a six-week management and leadership development course. The cohort incl...
29/10/2026
The F d ration Internationale de l'Automobile (FIA) and Amazon Web Services (AWS) have announced a global partnership under which AWS becomes the Official A...
29/10/2026
Advanced Systems Group (ASG) has appointed Bob Daniel Storage and Workflow Solutions Architect within its Enterprise Storage team. Daniel has more than 30 years...
29/10/2026
FloSports and the Pac-12 Conference have entered a media partnership that will b...
29/10/2026
TSN will launch Film Never Lies Grey Cup Playoffs Watchalong, an altcast hosted by TSN football analyst Luke Willson, for two CFL Grey Cup Playoffs games. Wills...
29/10/2026
For decades, broadcasters have designed production around one rule: build for th...
29/10/2026
Live event production company FOH Productions has built a portable camera switch...
29/10/2026
Gravity Media is marking its 25th year facilitating the host broadcast for the M...
29/10/2026
In-venue and creative video staffers at the professional and collegiate level ha...
29/10/2026
LA28 has named film producer Kathleen Kennedy Head of Ceremonies and Content for the LA28 Olympic and Paralympic Games. Kennedy, an eight-time Academy Award nom...
29/10/2026
In-house local telecasts have added new camera angles, graphics package, and dee...
29/10/2026
In this SVG New Sponsor Spotlight, Jake Blount, EVP, Sales, ICAT Logistics, disc...
29/10/2026
Mastering plug-in treated to ground-up rebuild
With a few plug-in releases now under their belt, Musik Hack have revisited their debut offering and kitted i...
29/10/2026
New modular full-range monitoring system arrives
Following a few weeks of teasers, HEDD Audio have just revealed the latest addition to their high-end monit...
29/10/2026
SGL Carbon LLC ( SGL Carbon ) has received an additional order for the supply of nuclear graphite from X-energy Reactor Company, LLC ( X-energy ) in accordance ...
29/10/2026
Rohde & Schwarz introduces MXO AI Connect for AI-assisted oscilloscope workflows Rohde & Schwarz connects AI assistants to its MXO oscilloscopes through MXO A...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
When LinkedIn set out to upgrade meeting spaces across nine APAC cities, the goal was clear: employees needed to walk into rooms in Bangalore, Beijing, Hong Kon...
29/10/2026
Lightware has expanded its LARA (Lightware Advanced Room Automation) Wizard platform with a new Elgato Stream Deck integration, allowing supported Stream Deck d...
29/10/2026
Boston Conservatory Center Stage Presents Opera Masterpiece La Boh me The Conservatory's production of the timeless opera will conclude the fall Center St...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
NewMedia Creative Technology Studio combined a large LED character, directional voice capture and remotely hosted AI processing for AI HOST, its interactive ins...
29/10/2026
The Royal Television Society Technology Centre (RTS) presented its 2026 Special Recognition Award to Newsmax, Newsmax Ukraine, Broadcast Solutions and nxteditio...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
29/10/2026
amaran, pioneer of lighting tools for creators, today announced the amaran Cam, its first webcam designed to go beyond simply capturing an image to help creator...
29/10/2026
The Sky Original returns to screens on November 26Thursday 29 October 2026
Ella Purnell is back in the killer new trailer for Sweetpea Season 2Turn on cookies ...
29/10/2026
In our increasingly climate conscious world, many cities are embracing nature, with more tree cover and open spaces such as parks, and restored wetlands, ponds,...
29/10/2026
Red Seat Ventures Announces Exclusive Partnership with Homecoming Golf Partnership Includes Homecoming Golf's New Drink Cart Scramble Series Featuring Hig...
29/10/2026
Oct. 29, 2026 - US-based Alliance for Audited Media (AAM) and the UK's ABC,...
29/10/2026
This Halloween week, GFN Thursday is delivering a fresh batch of gaming treats.
Something wicked this blade comes. S-GAME's Phantom Blade Zero launches on ...
28/10/2026
SDI Failsafe IP Routing: Inside the UTAH-400 Series 2 Router A pure-IP routing core has no inherent fallback. When the ST 2110 network degrades, when the PTP gr...
28/10/2026
MLB Network is nearly all-day media day coverage across MLB Now, MLB Central, ML...
28/10/2026
Voyage Audio and Shure microphones are in the forefront of the sector's transition to digital
Microphones may have come late to the digital table, but they...
28/10/2026
Having long resisted the transition, broadcast audio's most fundamental element is finally entering the digital era
About 25 years ago, a microphone manufa...
28/10/2026
The Wireless Microphone Spectrum Alliance (WMSA), formed in 2025 to raise awareness with government entities about wireless microphone operations, has held meet...
28/10/2026
The manufacturer's brands span a variety of markets, with a focus on radio, streaming, intercom
Telos Alliance was at last month's IBC in Amsterdam onc...
28/10/2026
Companies presented latest offerings and explored opportunities in sports broadc...