Skip to main content
Nintex Community Menu Bar
Question

Refresh tab count

  • Jul 10, 2024 4:09 PM UTC
  • 6 replies
  • 44 views
  • Translate All

Forum|alt.badge.img+4

I have a tab set with a count label referencing a model. How do I make this refresh when additional rows are added to each of the models. I can do it for a table, just not for these tab labels?

6 replies

Forum|alt.badge.img+17

Forum|alt.badge.img+4
  • Author
  • Novice
  • Jul 10, 2024 5:02 PM UTC

Thanks, how is this added in.  For example, I have javascript to refresh the model at intervals - can I add this line into here?  Where exactly would it go?

(function(skuid){    var $ = skuid.$;
    $(function(){
        var myModel = skuid.model.getModel(‘teaminbox’);
        var waitTime = 3000;
        setInterval(function() {
            myModel.updateData();
        }, waitTime);
        
    });
})(skuid);


Translate

Forum|alt.badge.img+17

I would assume that you could add it right into this script but I don’t write much code, so I’m not sure the best place/format to put it.

Translate

Forum|alt.badge.img+13

In the upcoming Brooklyn release, global merges, such as {{$Model.Account.data.length}} will automatically update when the number of records in a Model changes. This will cause the number of records you’re showing in your Tab labels to automatically update when the number of records in the Model whose data is shown in a tab is changed.

Translate

Forum|alt.badge.img+4
  • Author
  • Novice
  • Jul 10, 2024 5:02 PM UTC

Any idea when this might be released?

Translate

Forum|alt.badge.img+13

Brooklyn will be GA in November.

Translate