Show number of records on tab that contains related list ..?

  • 1
  • Question
  • Updated 4 years ago
  • (Edited)
how to add no of related records no related object same as we cxan se no  of records present in the related oblist.
Photo of Rizvan Ansari

Rizvan Ansari

  • 382 Points 250 badge 2x thumb

Posted 4 years ago

  • 1
Photo of Gregg Baxter

Gregg Baxter, Official Rep

  • 3,080 Points 3k badge 2x thumb
Hi Rizvan.

You can use an Aggregate Model to do this and display the aggregate field in the display template.

When you add a model click on Advanced and change the model type from Basic to Aggregate.

There is a section in the tutorials on Aggregate Models too. 

Enjoy. 
Photo of Rizvan Ansari

Rizvan Ansari

  • 382 Points 250 badge 2x thumb
Hi Gregg,
thanks for the response.
let me repeat my question once again.
i want to show no of records as shown in the figure in my skuid related tab list..




thanks
(Edited)
Photo of Gregg Baxter

Gregg Baxter, Official Rep

  • 3,080 Points 3k badge 2x thumb
This can be achieved in various ways. Ie you can create a queue with aggregate models and display them as templates. Check out the tutorial on aggregate models and model filters and templates. Ciao
Photo of Rizvan Ansari

Rizvan Ansari

  • 382 Points 250 badge 2x thumb
thankks..will try it :)
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
You can also show data about a model's lenght in the Tab Title field.  
I have a key people tab in my opportunity detail page that shows a related list on the opportunity contact role object.  The model is called "OpportunityRoles".  
I can add the following merge code to my Tab Title field:  Key People ({{$Model.OpportunityRoles.data.length}})

I get the following result: 


For more information on the merge syntax features avalable look here:  http://help.skuidify.com/m/11720/l/187263-global-merge-variables-functions

I think that gives you what you were after. 
Photo of Rizvan Ansari

Rizvan Ansari

  • 382 Points 250 badge 2x thumb
thanks a alot ROb...u really hellped me .!!
i need a another help from u..

i want to add follow button on the tab/list page beside every record
(Edited)
Photo of Rob Hatch

Rob Hatch, Official Rep

  • 44,006 Points 20k badge 2x thumb
Note: Emily answered this second question on its own forum post:  https://community.skuidify.com/skuid/topics/adding_a_follower_button_to_the_row_action
Photo of Rizvan Ansari

Rizvan Ansari

  • 382 Points 250 badge 2x thumb
Thanks Rob..:)