DocumentationCenterpoint for SalesforceAdd components to pages

Add components to pages

The package’s screens are Lightning components. A Salesforce administrator adds them to record pages, the home page, app pages and the utility bar with the Lightning App Builder, and sets their properties.

Add a component

  1. In Setup, open Lightning App Builder, then open the page you want to change, or create a new one.
  2. Find the component in the Custom section of the component list, and drag it onto the page.
  3. Select the component and set its properties in the panel on the right.
  4. Click Save, then Activate if the page is new.

Users need the Metaforce Access permission set to see the components, see Install and connect.

Components

ComponentWhere it fitsWhat it shows
MFWED_TemplateTreeCmpRecord pageThe Select Template card, see Letters and documents
MFWED_DocumentListCmpRecord pageDocuments in Distribution or Archived Documents, depending on its Metaforce Database property
CP Editor Sessions ListRecord page, home pageDocuments Under Construction
SmartForms ListRecord page, home pageThe Smartforms card for sending a form, see Smartforms
Smartforms In Process ListRecord page, home pageSmartforms In Process
Smartforms Completed ListRecord page, home pageArchived Smartforms
Smartform AttachmentsRecord pageThe files of a form
CP Data Table Value MappingData Table Value record pageThe editor for Field Mapping
CP ConfigurationApp page, home page, tabMetaforce Configuration, see The Configuration screen
CP Data Template BuilderApp page, home page, tabThe data template builder, see Data templates
Smartform Object Mapping ListHome page, tabThe mapping editor, see Smartform field mapping
CP Dynamo Attributes and CP Viewpoint AttributesRecord page, home pageThe field lists of the Dynamo and Viewpoint databases
Smartform Status BarUtility barA Metaforce Status card with the latest Smartform event
MFSMF_InteractiveLoginAny pageThe Log in and Open buttons

The Metaforce Application tab already contains the Log in and Open buttons and the Metaforce Configuration card, so you usually do not add those yourself.

The record components need a record. If you place one on the home page, the document list shows No SObjectType or RecordId found. Please place the component on a record page, not the home page. In the Smartform send dialog, the Contacts list is filled on Account, Contact, Case, Opportunity, Event and Task records. On other records, choose participants from Users.

Properties

Select Template (MFWED_TemplateTreeCmp)

PropertyMeaning
Show buttons and checkboxesOn (the default) shows the Preview, Create and Edit buttons and a checkbox for each template. Off hides them and shows the same actions on each row of the tree.
Metaforce logic file nameThe name of the Metaforce logic file. The default is Salesforce.
Show all templatesShows every user selectable template, not only those whose SOBJECT keyword matches the record.
DeveloperAdds tools for administrators: Dynamo Create, Email XML Data, Show XML Data and a data service choice.
Matching field nameThe field on the record whose value is compared with the FIELDVALUES keyword of a template.
Show Description column firstShows the Description column before the Name column.

Document list (MFWED_DocumentListCmp)

PropertyMeaning
Fields to queryThe Salesforce fields to read from the record, comma separated, for example ["Id","SSN__c"].
Field mapping for search criteria, metaforce field (key) and Salesforce field (value)Links a Metaforce field to a Salesforce field, so the list finds the documents of this record. For example {"SSN":"SSN__c"}.
Key to sort onThe field to sort by, for example JOBID. The default is ArchiveDate.
Sort orderASC or DESC. The default is DESC.
Metaforce DatabaseDynamo for Documents in Distribution, Viewpoint for Archived Documents. The default is Dynamo.
Page sizeThe number of documents on a page. The default is 8.

The columns of this list come from the Metaforce Metadata Field setting, see The Configuration screen.

CP Editor Sessions List

PropertyMeaning
Show Document ClassificationAdds a Classification column.
Show information from related SObjectAdds a column with a value from a related record.
Column heading for the related SObject(s)The heading of that column. The default is Identification.
List of related SObject fields.The fields to show, in the form Object1:Field1,Object2:Field2. The default is Account:AccountNumber,Contact:SSN__c.
Show information on user created this WebEditor session.Adds a column with a value from the user who started the session.
Column heading for the creating userThe heading of that column. The default is Username.
Name of the field to show from the UserThe user field to show. The default is Username.
Show name of user created this WebEditor session.Adds a Created By column.

Smartform Attachments

PropertyMeaning
API Name of Field (e.g., Case.SmfId__c)The field on the record that holds the id of the Smartform.
Title for Attachments SectionThe title of the card. The default is Smartforms Attachments.
Filename Column LabelThe heading of the file name column. The default is Filename.
Property Name Column LabelThe heading of the property column. The default is Property Name.
Action Column LabelThe heading of the column with the Preview and Download buttons.

The component also works in the Salesforce mobile app, where it shows each file as a card.

Data Table Value mapping

Place CP Data Table Value Mapping on the record page of the Data Table Value object. It has no properties. See Smartforms.