
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/08/2026
Dalet, a leading technology and service provider for media-rich organizations, t...
04/07/2026
April 7 2026, 19:00 (PDT) Detective Conan: Fallen Angel of the Highway Opens in...
01/06/2026
January 6 2026, 05:30 (PST) Dolby Sets the New Standard for Premium Entertainment at CES 2026
Throughout the week, Dolby brings to life the latest innovatio...
21/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/05/2026
Bitmovin, a leading provider of video streaming solutions, has announced that streaming service provider, Watch Brasil, has replaced its legacy systems with Bit...
21/05/2026
OWC Launches Dads and Grads Promotion with Exclusive Savings
Brie Clayton May 21, 2026
0 Comments
The gifts they'll actually use - save on cutting...
21/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
21/05/2026
For cinematographer Ashley Barron ACS ( Rivals , Dangerous Liaisons , Disney's Doctor Who ), setting the look of Netflix's How to Get to Heaven from ...
21/05/2026
Jean-Fran ois Hensgens, AFC, SBC, (Tueurs, Six Days in Spring, Le Fil) brings his signature visual approach to Cannes 2026 premiering biopic L'Affaire Marie...
21/05/2026
2026 delegation for Partner with Australia (UK) initiative announced 21 May 2026
Screen Australia and Ausfilm have today announced the delegation for the 2026 ...
21/05/2026
Beeble launches Canvas, a node-based AI compositor for VFX and Virtual Productio...
21/05/2026
Shelly Johnson Elected President of American Society of Cinematographers
Brie Clayton May 20, 2026
0 Comments
The American Society of Cinematographers...
21/05/2026
ARRI expands Management Board to accelerate next phase of growth and innovation
Brie Clayton May 20, 2026
0 Comments
ARRI expands its Management Board...
21/05/2026
The mission begins now.
GeForce NOW is dialing up the action with a blockbuster...
20/05/2026
True to the Music City theme, the Tennessee Titans plan to make live music a prominent fixture on game days at the new venue
Reflecting the continuing converge...
20/05/2026
The long-term goal is innovation for the next generation of hockey rinks at both the professional and the community level
The National Hockey League (NHL) toda...
20/05/2026
End-users and vendors alike work toward cost-effective yet high-quality solution...
20/05/2026
The National Football League has announced that Nashville will host Super Bowl LXIV in 2030 at the new Nissan Stadium. The announcement was made at the NFL Spri...
20/05/2026
The NFL has announced that the 2028 NFL Draft presented by Bud Light will take place in Minnesota, uniting fans from around the world to celebrate one of the mo...
20/05/2026
As professional AV workflows continue to evolve, expectations around audio, video, networking, and control are rising rapidly. At InfoComm 2026 in Las Vegas, La...
20/05/2026
Haivision will showcase its latest innovations at InfoComm 2026, taking place fr...
20/05/2026
For the seventh year, Spotify is returning to CMA Fest with Spotify House, the festival's premiere destination for fans. We're taking over downtown Nash...
20/05/2026
Amp-simulation software expanded
Acustica Audio's latest release greatly expands on their amp-simulation platform, turning it into a complete amplifica...
20/05/2026
MainStage integration, Analog Lab improvements & more
Arturia have just announced the release of an update that brings an assortment of new features to thei...
20/05/2026
At the Annual General Meeting held on May 20, 2026, the shareholders of SGL Carb...
20/05/2026
From Gulkula to the nation: Yothu Yindi Foundation and NITV deepen national acce...
20/05/2026
SBS appoints David Fernandez as National Manager, Digital & TV Sales
20 May, 2026
Media releases
SBS has appointed David Fernandez as National Manager, Dig...
20/05/2026
Rohde & Schwarz and INFOZAHYST: A strategic alliance set to redefine modern defe...
20/05/2026
A Rotating Detonation Engine being hot fire tested at Purdue University's Zu...
20/05/2026
A U.S. Army VAMPIRE system, assigned to Bravo Battery, 1st Battalion, 51st Air Defense Artillery Regiment, 7th Infantry Division/Multi-Domain Command - Pacific ...
20/05/2026
Cable Captures Only Monthly Increase Among Viewing Categories in March, Earns it...
20/05/2026
April brought a symbolic decrease in the overall time spent in front of television screens. On average, Poles watched video content for 3 hours and 51 minutes a...
20/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/05/2026
The Royal Television Society Technology Centre today announces the launch of the RTS Technology Awards 2026, celebrating excellence, innovation and achievement ...
20/05/2026
In the heart of London's financial district, the new purpose-built Troubadour Canary Wharf Theatre invites audiences to experience Suzanne Collins' inte...
20/05/2026
LiveU, the leader in live IP-video solutions, today announced that production powerhouse BCC Live successfully deployed the new LU900Q intelligent production un...
20/05/2026
Nella Mente di Narciso Docuseries Uses Blackmagic Design Workflow
Brie Clayton May 19, 2026
0 Comments
PYXIS 6K full frame camera and DaVinci Resolve ...
20/05/2026
Beeble launches Canvas, a node-based AI compositor for VFX and Virtual Productio...
20/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/05/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
20/05/2026
First Nations Factual Co-production Development Fund launched to elevate Indigen...
20/05/2026
TLC Announces All-Star Comedy Line-Up for Mock the Week: Summer Specials' o...
20/05/2026
Back to All News
One Hundred Years of Solitude Concludes This August, With Part...
20/05/2026
Back to All News
Beloved NHK Dramas to Stream on Netflix Worldwide Starting June 22
Entertainment
20 May 2026
GlobalJapan
Link copied to clipboard
Netflix...
20/05/2026
May 20 2026, 06:00 (PDT) Dolby Recognized as 2025 Supplier of the Year and Over...
20/05/2026
Mayo's Dee Freney and Margaret Leahy from Galway have reached the final of RT Today's TV Home Cook competition.
Both contestants will cook again live...
20/05/2026
RT IN FULL BLOOM AT BORD BIA BLOOM 2026 WITH LIVE BROADCASTS, MUSIC, CHAT AND M...
19/05/2026
The winner of Thomson Foundation's Young Journalist of the Year 2025, Tracy Bonareri Onchoke, and runner up Wangu Kanuri enjoyed a three-day trip to London ...