
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/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
04/11/2026
Advanced Systems Group (ASG) has appointed Bob Daniel as Storage and Workflow Solutions Architect within the Enterprise Storage team. Daniel has over 30 years o...
03/11/2026
Grass Valley has announced that France T l visions has completed the first phase...
03/11/2026
SES and WELT TV have renewed their partnership under a new multi-year agreement for satellite distribution in Germany. The agreement runs into the next decade a...
03/11/2026
Eutelsat's OneWeb low Earth orbit (LEO) network will provide connectivity as...
03/11/2026
CONMEBOL has renewed its agreement with GRUP MEDIAPRO, which will continue to run the CONMEBOL Hub's end-to-end operation through 2030. The Hub handles prod...
03/11/2026
Aggreko has returned as Official Temporary Power Partner for the FORMULA 1 HEINE...
03/11/2026
Gravity Media has deployed its fully IP-based OB truck, Nova 110, in Belgium for the first time. It made its operational debut supporting a UEFA Europa League m...
03/11/2026
The NFL and TMRW Sports have unveiled Premier Flag, the brand identity for a new...
03/11/2026
Stephen Arnold Music has developed the original musical theme and sonic branding...
03/11/2026
Monumental Sports Network (MNMT), the local media rights holder for the NHL's Washington Capitals, NBA's Washington Wizards and WNBA's Washington My...
03/11/2026
has brought its specialist SMARThead robotic camera technology to the United Sta...
03/11/2026
In under two years, a seven-person startup has grown to more than 270 staffers, ...
03/11/2026
Olympics history is currently being made in Dakar. During the next two weeks, the Youth Olympic Games, which began on Oct. 31 and conclude on Nov. 13, are the f...
03/11/2026
There are many challenges in the sports-video-production industry that keep personnel up at night, and one that's currently on the minds of individuals in b...
03/11/2026
Telstra Broadcast Services may call Australia home but this year it continued to...
03/11/2026
Employs German-made CK12 capsule
Myburgh have announced that their long-awaited M28 microphone is now shipping. Said to be the ideal choice for engineers in...
03/11/2026
New AI-powered denoise & stem separation tool announced
iZotope have just released a new GPU-powered tool that pairs stem separation with a powerful selecti...
03/11/2026
Rohde & Schwarz to demonstrate technologies supporting Europe's sovereignty ...
03/11/2026
New path-to-purchase research solution connects 30 consumer categories and more ...
03/11/2026
Latest Nielsen data reveals a surge in advertising investment during key festive...
03/11/2026
aconnic AG (ISIN: DE000A0LBKW6), Munich, announces the launch of the iSphir OT s...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
PlayBox Neo has taken 24/7 playout for the news outlet Cheddar to the cloud. Powered by PlayBox Neo's own CDN and the full PlayBox Neo Suite media platform,...
03/11/2026
Blendkit for Unreal
Brie Clayton November 3, 2026
0 Comments
Blendkit expands ecosystem with new Unreal Engine integration alongside 8th anniversary l...
03/11/2026
Blackmagic Design Announces New UltraStudio Express HD
Brie Clayton November 3, 2026
0 Comments
New capture and playback solution with 3G-SDI, HDMI an...
03/11/2026
Berklee Artists Return for Performances at Bostons Snowport Holiday Market Presented through a partnership between Snowport, Mohegan Sun, and Berklee, the wee...
03/11/2026
Grass Valley announced that France T l visions has completed the first phase of its Genesys production infrastructure renewal program for Franceinfo, moving the...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
03/11/2026
SmallHD announced the launch of the new Focus 504 Monitor, featuring a low-profile form factor, die-cast aluminum construction, professional-grade I/O, and the ...
03/11/2026
Gaffer Webb helped light the pivotal Kill Room scene with Astera QuikSpot...
03/11/2026
IllusionFX 1.1 is Out!
Alex Perea November 2, 2026
0 Comments
More tools, more creative freedom.
Graph editor. Shape your animation curves with preci...
03/11/2026
Rowan University Explores Virtual Production Workflows
Brie Clayton November 2, 2026
0 Comments
Students work across camera tracking, compositing and ...
03/11/2026
How to Hand Over an After Effects Project So the Next Person Can Open It
Ozgur Gorgun November 2, 2026
0 Comments
Most After Effects projects get open...
03/11/2026
Don't F*** with Fans comes to Sky Documentaries on 21 NovemberTuesday 3 Nove...
03/11/2026
From The Ghoster to The Flake, new research reveals the characters, chaos and ca...
03/11/2026
For every stage of creation From first idea to finished song, Scarlett is there for whatever comes next.
Start where you are Music-making rarely waits for t...