
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 ...
09/10/2026
September 10 2026, 06:00 (PDT) Dolby Expands Dolby OptiView Platform with New Capabilities at IBC 2026
New Sports Intelligence helps providers better unders...
07/10/2026
Dalet, a leading technology and service provider for media-rich organizations, today announced the latest Long-Term Supported (LTS) release of Dalet Flex. Build...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
22/09/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/09/2026
Manifold Technologies, developer of software-defined, FPGA-accelerated infrastructure for live production, has named Ryhaan Williams as Chief Commercial Officer...
21/09/2026
Studio Network Solutions (SNS) has won Best Journal Article at the 2026 IAMT Impact Awards for What Video Editors Need When Everything Is Changing Around Them,...
21/09/2026
Major League Wrestling (MLW) has announced a streaming distribution agreement with Tubi for its weekly series MLW FUSION. Beginning September 17, new episodes w...
21/09/2026
Disney Entertainment has announced that Adam Smith has been named Chairman, Direct-to-Consumer, with responsibility for Disney and Hulu including product, engi...
21/09/2026
United Airlines and DISH have announced an agreement to bring live professional ...
21/09/2026
SES and JioStar have announced a multi-year agreement under which SES will provide satellite distribution services for JioStar's television channel portfoli...
21/09/2026
The Detroit Red Wings have announced details for their inaugural season on Detro...
21/09/2026
Manifold Technologies has appointed Ryhaan Williams as Chief Commercial Officer for North America, effective October 1, 2026. Based in Jacksonville, Florida, Wi...
21/09/2026
Angels Broadcast Television (ABTV), the local television home of the Los Angeles...
21/09/2026
The 2026 US Open Tennis Championships marked a year of change with respect to TV...
21/09/2026
Behind The Mic provides a roundup of recent news regarding on-air talent, includ...
21/09/2026
Drum-tuning app now available on Android
RT60 describe their iDrumTune app as the world's most advanced, accurate and intelligent system for assisting ...
21/09/2026
Innovative multiband auto-panner introduced
SoundGhost's latest plug-in takes an innovative approach to auto-panning, and divides incoming signals into ...
21/09/2026
We check out the M5 Max-equipped model The same, but different. The new Mac Studio models feature M5 Max and M5 Ultra silicon, dramatically improving the perf...
21/09/2026
From Graphic Novel to 30-Minute Animated Film: What I Learned Building an AI-Ass...
21/09/2026
Liam Hopkins Builds Recording Studio with Blackmagic Design
Brie Clayton September 20, 2026
0 Comments
Video complements audio production with music v...
21/09/2026
Indigenous screen organisations from Canada, Aotearoa New Zealand and Australia ...
21/09/2026
Physical AI is moving rapidly from research to large-scale deployment. By 2035, ABI Research projects an installed base of 49 million level 3-5 autonomous vehic...
21/09/2026
Today, Egypt's AI builders gathered in the Grand Egyptian Museum for a reception that highlighted the nation's rapidly growing AI ecosystem - spanning A...
21/09/2026
Every AI factory needs power and cooling that fit its computing architecture. As AI infrastructure expands, power, cooling, water, site and grid constraints are...
21/09/2026
RT celebrates Irish Sign Language Awareness Week 2026
Special programmes across RT television, radio and online, plus special initiatives
#ISL #IDSL #IWDP26...
21/09/2026
AI security is an engineering problem. That means defined security requirements,...
21/09/2026
Clean energy isn't hard to come by, but the pace of large-scale adoption has historically been slow due to bottlenecks - including out-of-date infrastructur...
20/09/2026
Piano-playing singer-songwriter competition returns for fourth year
Casio have officially revealed the list of 16 finalists who have earned their place in t...
20/09/2026
COW Jobs: Video Editor, Motion Designer - Remote, PT, 6 Months
Brie Clayton September 20, 2026
0 Comments
Video Editor + Motion Designer (Remote | PT ...
19/09/2026
Three new rackmount power conditioners introduced
Yorkville Sound have announce the upcoming launch of three new RPC rackmount power conditioners from ART P...
19/09/2026
September 15, 2026
AMSTERDAM, SEPTEMBER 2026 - Colorfront (colorfront.com), the Academy and Emmy Award-winning developer of high-performance cinema mastering, ...
19/09/2026
Two High-Profile Professional Sports Franchises Renew creative.space Contracts with DigitalGlue
NFL team and Major League Soccer Club cite ease of use, secure ...
19/09/2026
Limited Edition Audio releases VoxSplit Pro for overlapping dialogue separation ...
18/09/2026
IBC 2026 Tech Moves Beyond the Gloss and Into the Rack If you spent any time in the halls of the RAI this year, you noticed a clear shift in conversation. The c...
18/09/2026
In-venue and creative video staffers at the professional and collegiate level ha...
18/09/2026
Qvest has appointed Jens Miedek as Senior Vice President Sales, Media and Entertainment. Before joining Qvest, Miedek spent 16 years at Riedel Communications an...
18/09/2026
Fonn Group has acquired full ownership of everviz, a cloud-native platform for interactive charts, maps, and data-driven graphics, and will rebrand it as Teikna...
18/09/2026
Other World Computing (OWC) has announced the acquisition of OpenDrives, a provider of software-defined video and rich media storage management solutions. The a...
18/09/2026
Kaltura and Verimatrix have announced a partnership integrating Verimatrix's Digital Rights Management and security capabilities into Kaltura's Cloud TV...
18/09/2026
The sixth edition of the World Nomad Games combined traditional sports, large-scale cultural performances, and some decidedly modern broadcast technology. Held ...
18/09/2026
DAZN and Super League Basketball (SLB) have extended their partnership for the 2026-27 season. Every Championship, Cup, and Play-Off fixture will be available l...