
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 ...
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
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 ...
02/12/2026
ZOOM Communications Private Limited (ZOOM) announces a significant strategic equity investment in International Sports Broadcasting Company (ISB), Spain. This i...
02/12/2026
The summit connects broadcasters and technology providers directly with YouTube&...
02/12/2026
From directing TCU baseball broadcasts on ESPN+ to working major events at AT&T Stadium, this senior from Texas is embracing every opportunity to grow as a live...
02/12/2026
Collaborations with BYUtv, JWP Productions, and member institutions fuel enhance...
02/12/2026
Ambitious project inspired by General MIDI
The Crow Hill Company's latest release marks the start of a bold project that aims to culminate in the ultima...
02/12/2026
Two new handy Mac mix-check Apps announced
Tarn Audio is the latest venture of Tim Lloyd, a developer who spent 13 years creating pro-audio tools for the li...
02/12/2026
Free songwriting & notation iOS App upgraded
Q Up Arts have just launched the latest version of their free songwriting and notation App for the iPhone and i...
02/12/2026
Big stories. Big moments. A standout year for SBS.
2 December, 2026
Media releases
SBS reached an average of 13.8 million Australians each month - up 8% Yo...
02/12/2026
Rohde & Schwarz and Altair Semiconductor advance 3GPP Rel 18 eRedCap readiness w...
02/12/2026
The company will showcase how its end-to-end TV platform unifies experiences, op...
02/12/2026
The company will present its vision for the future of TV operations through four strategic pillars, with TV Solutions for Hotels & Hospitals taking center stage...
02/12/2026
December 2, 2026
Colorfront has partnered with RED DIGITAL CINEMA to integrate native Colorfront color management into RED Connect, extending its renowned col...
02/12/2026
New enhancement helps multi-market brands and agencies turn fragmented ad data i...
02/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...
02/12/2026
Geronimo Creek Inc., a leading lighting and grip company specializing in fast moving, location based production, has adopted Pliant Technologies' MicroCom X...
02/12/2026
Miris and Evercast announce high-fidelity 3D asset streaming in Presenter
Brie Clayton December 2, 2026
0 Comments
Miris, a 3D streaming infrastructur...
02/12/2026
Lawrence Virtual Studio Relies on Blackmagic Design
Brie Clayton December 2, 2026
0 Comments
Digital film cameras and DaVinci Resolve Studio bring fle...
02/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...
02/12/2026
Circle Studios and ionoco today announced a global partnership to develop and deliver dynamic, interactive and gamified experiences for clients around the world...
02/12/2026
Media postgraduates at Complutense University in Madrid will once again gain hands-on experience with professional live broadcast and Pro AV technology this Dec...
02/12/2026
Blue Lucy, the workflow orchestration and integration platform for broadcasters, rights owners and production companies, today announced a new integration conne...
02/12/2026
Inside the Palais Garnier with URSA Cine Immersive
Brie Clayton December 1, 2026
0 Comments
INIT Lab produces an extended run Apple Immersive Video ex...
02/12/2026
Berklee Music and Health Institute to Lead National Coalition Advancing Musics R...
02/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...
02/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...
02/12/2026
Share
{alert(Link copied)}).catch(err => {console.error(Failed to copy: , er...
02/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...
02/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...
02/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...
02/12/2026
Miris, a 3D streaming infrastructure provider, and Evercast, a leading provider of real-time media review tools, today announced the beta of an Evercast Present...
02/12/2026
QuickLink, the leading provider of multi-camera video productions and remote contribution solutions, announces the launch of StudioPro Ascent and StudioPro Ap...
02/12/2026
Safety and capability aren't a trade-off.
NVIDIA founder and CEO Jensen Huang made that case Wednesday at GTC Washington, D.C., joining Advancing Safety ...