Hi, I have multiple related lists organized into tabs on my Skuid Account page and I like to include the number of records located inside each tab so that users can quickly see how many records are in a tab without clicking on it. I do this by putting the following in the tab custom label
({{$Model.Contacts.data.length}})
This produces a tab that shows Contacts (3) in the tab name. My question is; if I have a tab with multiple models inside of it. ie. a Notes and attachments tab, what is the best way that I sum those together to produce one number for my tab label.
ie. if I have 4 notes and 6 attachments for an account, how can I sum ({{$Model.Notes.data.length}}) and ({{$Model.Attachments.data.length}}) to produce “Notes & Attachments (10)” in the tab label.
Question
Record count in tab names for multiple models
This topic has been closed for replies.
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.