
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 ...
07/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
07/11/2026
COW Jobs: Production Manager - Las Cruces, NM
Brie Clayton November 6, 2026
0 Comments
Production Manager
November 5, 2026COW Jobs: Faith-Based UGC ...
06/11/2026
It's been a big week in Australia horse racing as the Victoria Racing Club (...
06/11/2026
Additional gear includes a second, outside drone; a second slo-mo unit; and a wi...
06/11/2026
The University of Alabama has installed a new Daktronics display system at Coleman Coliseum in Tuscaloosa. It includes a 360-degree centerhung with four underbe...
06/11/2026
NEP Americas, part of NEP Group, has expanded its remote production offering with new IP-based flypack production kits deployed from the U.S. and available to c...
06/11/2026
Telestream has appointed Joseph Hopkins Chief Revenue Officer. He has more than two decades of executive experience in media technology. In the role, he will fo...
06/11/2026
In-venue and creative video staffers at the professional and collegiate level ha...
06/11/2026
It's been nearly two years since MLS Productions made the move to WWE's ...
06/11/2026
All 30 clubs take the field Saturday, and every camera, graphic, and feed runs t...
06/11/2026
Latest official Oberheim collaboration arrives
Following on from the launch of their new and improved website, GForce Software have released their latest of...
06/11/2026
Pro Tools Extensions, MPE support & more
Avid have just released Pro Tools 2026.11, which introduces built-in stem separation, a new Extensions format that ...
06/11/2026
Interface range can now run captures on internal DSP
Heritage Audio have just launched a firmware update that makes it possible for their i73 Pro audio inte...
06/11/2026
SMALL TOWN. BIG DREAMS. ABSOLUTE MAYHEM. The crown is up for grabs in bold new S...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Maxon Expands Creative Possibilities with New Touch and Spatial Experiences in Cinema 4D and ZBrush for Apple Products New capabilities let artists interact wi...
06/11/2026
Big Daddy Kane to Be Inducted Into Berklee's Hip-Hop Hall of Fame The Grammy-winning emcee joins an iconic roster of inductees in an event that features s...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
06/11/2026
Black Friday Deals from Flanders Scientific, Inc - An Atomos Company
Brie Clayton November 5, 2026
0 Comments
Purchase any FSI monitor between now and...
06/11/2026
COW Jobs: Faith-Based UGC Video Creator - Remote
Brie Clayton November 5, 2026
0 Comments
Faith-Based UGC Video Creator (Remote, Part-Time)
November...
06/11/2026
Friday 6 November 2026
That's Christmas Sorted: Sky brings entertainment ic...
06/11/2026
Fox Corporation Completes Acquisition of Roku FOX Is Now One of the Leading Streaming Businesses in the U.S., Inclusive of Roku, Tubi and FOX One
Roku's...
06/11/2026
18-20 November
Hall 6, stand #6413 (Restar Communications)
Come and see us in Tokyo at InterBEE 2026, where you will find us with our partner Restar Communica...
06/11/2026
Discover a week of themed programming and content across RT 's services
Documentaries | Kids | Podcasts | Ireland's city of the future | More
Includes...
06/11/2026
A year ago, NVIDIA open sourced its Aerial wireless software, joining Sionna and...
05/11/2026
The Chicago native has emerged as a leader at Marquette's student-run production operation, directing broadcasts, mentoring peers, and building toward a car...
05/11/2026
Sky Sports will broadcast the inaugural 2026 and 2027 seasons of the women's TGL (WTGL) exclusively in the UK, as part of an expansion of its golf rights th...
05/11/2026
CP Communications worked with Gravity Media to bring Gravity's SMARThead rob...
05/11/2026
Gravity Media developed a remote production solution for Beyond Productions'...
05/11/2026
Canon U.S.A. has announced a firmware update for its Cinema EOS cameras, includi...
05/11/2026
Canon Inc. is celebrating the 15th anniversary of the Cinema EOS System this month, Canon U.S.A. announced. Launched in 2011 for professional video production, ...
05/11/2026
Canon U.S.A. has announced new Cinema EOS Lens Kits and an EOS C50 Videographer Kit. Sales are scheduled to begin in mid-November 2026.
The lens kits pair the ...
05/11/2026
Dick Stockton's broadcasting career was marked by longevity, versatility, an...
05/11/2026
The United Football League Draft is set to take place at Ball Park Village in St. Louis on beginning on November 18 and the UFL today announced that players fro...
05/11/2026
Most compact Qu-series consoles to date
Allen & Heath have just revealed two new additions to their Qu digital mixer line-up, the Qu-3 and Qu-3D. The new ar...
05/11/2026
We take a look at the first touchscreen-equipped Mac Peter Gabriel once sang: I have the touch. Now we all do. The new MacBook Pro with PROLED XDR Display b...
05/11/2026
SGL Carbon's consolidated sales in the first nine months of 2026 totaled 59...
05/11/2026
Rohde & Schwarz and Pegatron validate FR3 phased array technology for dual strea...
05/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...
05/11/2026
Share
Copy link
Facebook
X
Linkedin
Bluesky
Email...