Skip to main content

how to add no of related records no related object same as we cxan se no  of records present in the related oblist.

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. 


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…



2d8dd5e85c015794dc3a690147d62d84a2963171.png
thanks


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


thankks…will try it 🙂


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: 

568017d22600fa4a80578a16b2d6dcf520278298.png
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. 





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 record85d5a00010ccc4b86f46fe45519a735b492eb938.png


Note: Emily answered this second question on its own forum post:  https://community.skuid.com/t/adding-a-follower-button-to-the-row-action


Thanks Rob…🙂


Reply