
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 ...
10/11/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...
10/11/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...
10/11/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...
10/11/2026
Clear-Com supported On Air 2026, a 24-hour student-led broadcast connecting 45 universities across 30 countries. Using Station-IC virtual intercom panels, an ...
10/11/2026
Matrox Video today announced the launch of The Sync, a new video podcast series bringing together Matrox Video experts, customers, and partners to explore the t...
10/11/2026
Adobe Brings Agentic AI to the Content Supply Chain with CX Enterprise Coworker
Brie Clayton November 10, 2026
0 Comments
Adobe empowers brands to bui...
10/11/2026
Amplify Berklee Gala Raises More Than $1.3 Million for Berklee City Music Schola...
10/11/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...
10/11/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...
10/11/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...
10/11/2026
Grass Valley K-Frame switching and LDX cameras support live sports production at the Northwestern Wildcats' new stadium, providing a common technology platf...
10/11/2026
The League of Live Stream Theater (LOLST), the nonprofit organization partnering with theaters and producers to bring live theater to audiences worldwide throug...
10/11/2026
COW Jobs: Several remote positions at Chakrra
Brie Clayton November 10, 2026
0 Comments
Several remote positions at Chakrra
November 6, 2026COW Jobs...
10/11/2026
Blackmagic Design Unites Live Solutions for Reggae Land 2026
Brie Clayton November 10, 2026
0 Comments
Festival relies on ATEM Constellation 8K and UR...
10/11/2026
Where Video Editors Earn the Most and Where the Paycheck Goes Furthest
Mark Santos November 10, 2026
0 Comments
Sooner or later every editor asks what...
10/11/2026
Caroline Davis to Perform with Berklee Student Ensemble for Signature Series Con...
10/11/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...
10/11/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...
10/11/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...
10/11/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...
10/11/2026
New Compact industry-standard Support Fits in the Trunk of a Small Car
Pioneering C-Stand innovator, Matthews Studio Equipment, introduces the 33 Sliding Leg...
10/11/2026
Kubernetes, the open source system that manages how applications run across thou...
10/11/2026
Thursday 12 November, 10.15pm, RT One and RT Player
Neurodivergence - The Mak...
09/11/2026
In a new home, the show had its traditional focus on music production, but broadcast themes received significant emphasis
The Audio Engineering Society (AES) c...
09/11/2026
Content creation and rights, YouTube archive, production workflows, investment, ...
09/11/2026
Industry leaders from Prime Video, NASCAR, FOX Sports, and more discuss the tech...
09/11/2026
SMT (SportsMEDIA Technology) is delivering on-air graphics and shot data for the Women's Team Golf League (WTGL), which made its debut Sunday, Nov. 8, at So...
09/11/2026
BKB Bare Knuckle Boxing has appointed Michael Ridout Managing Director, UK. He will lead BKB's operations in the United Kingdom and take on wider operationa...
09/11/2026
SMPTE's Media Technology Summit (MTS2026) takes place Nov. 16-19 at the Pasadena Convention Center. The schedule:
Media Tech Business Forum (Monday, Nov. 1...
09/11/2026
The Audio Engineering Society (AES) held AES Show Nashville 2026 Oct. 30-Nov. 1 at the Gaylord Opryland Resort & Convention Center. AES reports nearly 3,000 reg...
09/11/2026
Analyst Josh Stinehour will share results Jan. 26 in Mountain View, Calif.
Devo...
09/11/2026
Behind The Mic provides a roundup of recent news regarding on-air talent, includ...
09/11/2026
Permanent mixed-reality activation debuted against the Brooklyn Nets at Rocket A...
09/11/2026
The new agreement brings the Playoff to 23 games, including 16 on-campus matchup...
09/11/2026
SMT provided production technology and graphics support for all three NASCAR nat...
09/11/2026
Captures Nils Frahms upright concert grand
In their latest collaboration with composer Nils Frahm, Native Instruments have captured a vertical concert grand...
09/11/2026
18-19 November 2026, Sonic College, UC SYD, Kolding, Denmark
Sonic College have announced that their annual Sonic Days conference is set to return to Koldin...
09/11/2026
Cinematic scoring tool gains free entry-level version
Sonuscore's Elements range offers a free entry point into the company's line-up of scoring too...
09/11/2026
Rohde & Schwarz and ZES ZIMMER present test solutions for power systems and auto...
09/11/2026
The BBC and BritBox have announced further casting for the forthcoming six-part series Hercule from Mammoth Screen and Agatha Christie Limited for the BBC and B...
09/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/11/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...
09/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
09/11/2026
Berklee's Singers Showcase Celebrates Whitney Houston's Music and Her Go...
09/11/2026
Monday 9 November 2026
Life in the fast laneTurn on cookies to view this content. Go to Privacy options and select Accept All'.
Privacy options
From Tik...
09/11/2026
Monday 9 November 2026
Cathy Newman to revist defining moments in recent histor...
09/11/2026
Monday 9 November 2026
Sky VIP unwraps over one million free rewards for customers this Christmas
This Christmas, Sky VIP is giving away more than one million...