Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • DataMiner Releases & Updates
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Low Code: Real time count down column?

Solved513 views30th September 2024low code app
5
Robin Becker [DevOps Advocate]1.40K 12th June 2024 2 Comments

Hi,

I’m trying to add a column to a table in my low code app that counts down in real time.

I have a column of a datetime of a TAKE and a column with a duration and I want to count down until the TAKE + duration is <= Now.

My solution so far has been to create a custom GQI Operator called “Time left” and it looks like this:

public void HandleRow(GQIEditableRow row)
{
var timeOfLastTake = row.GetValue<DateTime>(_timeOfLastTakeColumn).ToLocalTime();
var timeOfLastStop = row.GetValue<DateTime>(_timeOfLastStopColumn).ToLocalTime();
var duration = row.GetValue<Double>(_durationColumn);
TimeSpan timeLeft = timeOfLastTake.AddSeconds(duration).Subtract(DateTime.Now);

if (timeLeft <= TimeSpan.Zero || timeOfLastStop >= timeOfLastTake)
row.SetValue(_timeLeftColumn, TimeSpan.Zero);
else
row.SetValue(_timeLeftColumn, timeLeft);
}

The problem is that the low code app GUI doesn’t refresh regularly enough. So I added a Trigger feed, set it to the lowest possible value of 5 seconds and connected it to the table and that kind of works but looks very janky and is not accurate enough.

Is there a better way to get a real time count down timer as a column in a low code app?

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th September 2024
Marieke Goethals [SLC] [DevOps Catalyst] commented 27th August 2024

I see that this question has been inactive for some time. Do you still need help with this? If not, could you select the answer (using the ✓ icon) to indicate that the question is resolved?

Marieke Goethals [SLC] [DevOps Catalyst] commented 30th September 2024

As this question has now been inactive for a long time, I will close it. If you still want more information about this, could you post a new question?

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Tom Waterbley [SLC] [DevOps Catalyst]8.89K Posted 16th June 2024 5 Comments

Hi Robin. In a custom operator this is not available, but in an ad hoc data source the iGqiUpdateable interface can be used to push updates to the client.

If your data is already coming from such ad hoc data source you could add the countdown column in there, and let it automatically update using a timer.

There is an example on GitHub that demonstrates how to use the iGqiUpdateable interface.

Hopefully this helps

Marieke Goethals [SLC] [DevOps Catalyst] Selected answer as best 30th September 2024
Robin Becker [DevOps Advocate] commented 17th June 2024

The “updating” of the timer is then done on the server right?

Tom Waterbley [SLC] [DevOps Catalyst] commented 17th June 2024

That’s correct. In the ad hoc data source itself. A standard C#/.NET timer can be used as trigger.

Robin Becker [DevOps Advocate] commented 17th June 2024

Would it be reasonable to have a table with around 5-50 rows each a have a cell with an individual timer updating every 100ms or would this generate an unreasonable amount of traffic?

Sebastiaan Dumoulein [SLC] [DevOps Enabler] commented 17th June 2024

Although this approach would work, it’s additional traffic on the network for something that is preferably a client visualization. Unfortunately, I believe this is the only way though. Updating 10 times a second will create a lot of traffic, I would not advise this update rate. Is there any reason you want it to update this frequently?

Robin Becker [DevOps Advocate] commented 25th June 2024

In a broadcast environment you sometimes want to have a countdown for the operators.

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs