Skip to main content
Nintex Community Menu Bar
Question

Refresh tab count

  • July 10, 2024
  • 6 replies
  • 12 views

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
  • July 10, 2024

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);



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.


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.


Forum|alt.badge.img+4
  • Author
  • Novice
  • July 10, 2024

Any idea when this might be released?


Forum|alt.badge.img+13

Brooklyn will be GA in November.