
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
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 ...
03/12/2026
Sony Electronics is expanding its 4K professional BRAVIA display lineup with three ultra-large models: the 115-inch class (114.5-inch diagonal) RGB LED FW-115XZ...
03/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,...
03/12/2026
Lawo will demonstrate IP-based media infrastructure and software-based processing at Integrated Systems Europe (ISE) 2027 in Barcelona, booth 5C700. The company...
03/12/2026
Join SVG in New York City on Dec. 15 for a discussion on how digital platforms a...
03/12/2026
by Rick Young, SVP, Head of Global Products, LTN...
03/12/2026
Under the One Disney' philosophy, 15 ESPN and Disney brands will be represe...
03/12/2026
Hossein Keshavarz and Maryam Ataei at the Library Center Theatre on January 24, 2026, in Park City, Utah. (Photo by Cindy Ord/Getty Images)
By Jessica Herndon
...
03/12/2026
Olivia Wilde, Seth Rogen, Pen lope Cruz, and Edward Norton appear in The Invite...
03/12/2026
Top L-R: Ancestral Intelligence Network: Echolocation, Artou, Assemblage
Second Row L-R: Bar None, Dust and the Great Divide, Escape the Internet, Out of the A...
03/12/2026
Channel strip plug-in overhauled
Swivel Audio's HitStrip plug-in brings together everything you'd expect to see in a channel strip, but goes a step ...
03/12/2026
New high-quality USB-C DAC revealed
Sony have just announced the upcoming launch of a new ultra-portable DAC that's based on technology inherited from t...
03/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...
03/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...
03/12/2026
Calrec expands into the Pro AV market with Type RT at ISE 2027
Brie Clayton December 3, 2026
0 Comments
Type RT makes its first ISE appearance, as Cal...
03/12/2026
LUTs Are Dead - Here's What's Replaced Them
Kasia Jarco December 3, 2026
0 Comments
If you want great color grading results, forget about usin...
03/12/2026
Boston Conservatory at Berklee Center Stage Returns in February The spring Center Stage season will spotlight Conservatory student talent in opera, theater, a...
03/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...
03/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...
03/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...
03/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...
03/12/2026
Sunday comes every week. For most church production teams, so does the scramble. They build graphics for the sanctuary walls, rebuild them for the stream, then ...
03/12/2026
Wisycom is pleased to announce that its MPR60 Wideband True Diversity IEM/IFB Receiver has been named a finalist in the Wireless Technology category for the 202...
03/12/2026
Screen Australia identifies opportunities to strengthen local audiences and retu...
03/12/2026
How can Aussie films win over cinema audiences? 3 December 2026
Australians are passionate movie-goers*, but are they watching local film?
Find this episode ...
03/12/2026
Australia/Korea Co-production unites to fright audiences 3 December 2026
Image credit: Mark Taylor
The first official feature film under the Australia/Korea C...
03/12/2026
Thursday 3 December 2026
Sky Sports extends Super League partnership after agre...
03/12/2026
Thursday 3 December 2026
Full Line-up Revealed for John Bishop's Comedy Night at the Coliseum'
John Bishop's Comedy Night at the Coliseum headsho...
03/12/2026
Take your data to 30 new destinations for just £2 a day* including Japan and NigeriaThursday 3 December 2026
Sky expands global roaming to 150 destinations
Sk...
03/12/2026
News Corp Elevates Keith Poole to Publisher and Editor in Chief of New York Post...
03/12/2026
One of the most important outcomes of COP 31 is the push towards greater electrification through the 35 by 35 objective. This means increasing the role of renew...
03/12/2026
Comscore Analysis Shows Creator Media Value Underestimated by $50 Billion New analysis shows creator content can deliver more efficient advertising exposure whi...
03/12/2026
Live exports won't be here in ten years predicts leading animal welfare expert
Tonight at 9:35pm on RT One and RT Player
Secretly recorded footage of ...
03/12/2026
At a time when the world is expected to face a shortage of 11 million healthcare...
03/12/2026
Live exports won't be here in ten years predicts leading animal welfare expert
Tonight at 9:35pm on RT One and RT Player
Secretly recorded footage of ...