Installation

Configuration

  • From the customizations area open the entity form which you'd like to display the record count on
  • Click on Form Properties
step2.PNG
  • Add mag/jquery1.8.3.min.js and mag/uirecordcounter.js to the Form Libraries section. Please make sure that the jquery library added above uirecordcounter library
step3.png
  • Add a new Event Handler to Form Load
Library: mag_/uirecordcounter.js
Function: UIRecordCounter.Counter.displayCount
Parameter: see example below

step4.png
  • Save & Publish

Parameter Example

The UIRecordCounter.Counter.displayCount function allows you to pass an array specifying which navigation items to display the count in.

Syntax
Single navigation record count
['navItemName:relatedEntityName:foreignKeyFieldName']

Multiple navigation record count
['navItemName1:relatedEntityName1:foreignKeyFieldName1', 'navItemName2:relatedEntityName2:foreignKeyFieldName2']

Example: if you want to display the record count on the Activities navigation menu use the following parameter:
['navActivities:activitypointer:regardingobjectid']

Available Navigation Item Names (OOTB)
  • navActivities
  • navActivityHistory
  • navSubConts
  • navRelationships
  • navConnections
  • navOpps
  • navQuotes
  • navOrders
  • navInvoices
  • navService
  • navContracts

You can find the navigation item names by using Internet Explorer Developer Tools (F12) and looking at the id="..." of each navigation item.

Last edited Dec 16, 2012 at 4:16 AM by gperera, version 4

Comments

No comments yet.