
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 ...
31/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
31/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
31/10/2026
Riedel Communications today announced that live event production company FOH Productions has built a portable camera switching and control flypack that uses Rie...
30/10/2026
A highlight clip goes to air after a person says yes. What would it take to say how often that yes had to be earned?
Andreas EhstandA common design for automat...
30/10/2026
SNF's Chiefs-Seahawks leads the week with 26.3 million, Prime Video's Pa...
30/10/2026
The company aims to be more horizontal and not vertical' in managing sports rights and producing events
GRUP MEDIAPRO has begun charting a new course that...
30/10/2026
Player mics, an in-arena drone, enhanced replay operations, and a full onsite pr...
30/10/2026
By Ramona Flume
Each harvest season brings a sense of renewal and possibility. ...
30/10/2026
(L-R) Peter Dinklage, Alexander Skarsg rd, and Olivia Colman attend the Q&A for Wicker by Eleanor Wilson and Alex Huston Fischer, an official selection of the...
30/10/2026
Creates melodies from wavetables
BangZilla is the new plug-in division of The Audio Programmer, and their debut offering comes in the form of Wave Theory, a...
30/10/2026
30 October - 1 November 2026
This years AES Show is just around the corner, with this year's event marking the annual convention's first appearance ...
30/10/2026
Company launch new digitally controlled analogue hardware
Neve have just entered the world of digitally controlled analogue in style with not one, but four ...
30/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/10/2026
GB Labs Wins Future's Best of Show Award for Core.ONE, Presented by TVBEurope at IBC 2026
GB Labs, a leader in scalable, shared storage solutions, has rec...
30/10/2026
Lightware is introducing GPIO Button control for its Microsoft Teams Rooms on Windows (MTRoW) integration, giving users a simple, one-touch way to switch betwee...
30/10/2026
Lightware has added AVIXA Renewal Units (RUs) to its D sseldorf in-person training program, allowing AV professionals to earn recognized professional developmen...
30/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/10/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
30/10/2026
Creative software developer Foundry today announced Nuke Stage now supports macOS, making the end-to-end virtual production and in-camera visual effects (ICVFX)...
30/10/2026
While science fiction lore tells us that humans will meet extraterrestrial life ...
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...