Adding a feed source for the activity feed
Keep users informed about events that are relevant to them by including messages from an internal or external data source in the activity feed in a context, for example, messages that are posted on a user's team.
-
Include
the pxFeed section within the section or harness in which you want to
display the activity feed.
Tip: You can also override the pyPulseWrapper section to add feed sources for the activity feed that users see when they click the Pulse menu option in the Case Manager and Case Worker portals. This section includes the pxFeed section by default.
- On the Design tab of the section or harness, click the pxFeed section, and then click the View properties icon.
- On the Parameters tab, in the Configure feed source section, click Add feed source.
- In the Feed name field, enter a description for the new feed.
-
In the Data page field, enter a data page that is used to
retrieve the messages for the feed.
Tip: If you are navigating through a large number of feed items, configure the following additional parameters in the data page for better pagination, more accurate results, and optimal performance.
- ListPageSize of type Integer – This parameter specifies the number of feed items to be fetched.
- UpdateTime of type DateTime – This parameter specifies the time at which the next set of feed items will be fetched.
Update these parameters as part of the data page implementation to sort the feed items in a descending order of UpdateTime for pagination support.
-
Enter
the values for the data page parameters.
For example: If you are using the D_pxPostRepliesFeed data page to retrieve replies to user messages, enter the following value for the UserID parameter: pxRequestor.pyUserIdentifier
The system uses this value to fetch replies to the messages of the logged-in user.
-
Configure
the display of each message from the feed source:
- In the Icon field, select the type of icon that you want to display in the message. Select User to display a user's profile image, Icon class to display an icon that is provided by the system, and Image to display an image from the Image Catalog.
- If you selected User in the Icon field, enter a property in the User reference field to reference the user whose profile image you want to display. Enter .pyUser to display the profile image of the user who posted the message.
- If you selected Icon class in the Icon field, click the Open the icon class picker icon next to the Icon class field to select an icon from the system.
- If you selected Image in the Icon field, click the Show image viewer icon next to the Image reference field to select an image from the Image Catalog.
- In the Title field, select a display format for the title of the message.
- If you selected Property in the Title field, enter a custom property in the Property reference field.
- If you selected Section in the Title field, enter a custom section in the Section reference field.
- In the Time field, enter the property that retrieves the time at which the message is posted, for example, .pxUpdateDateTime.
- In the Message type field, select a display format for the message. Select Message for plain text and Section for a custom section.
- If you selected Message in the Message type field, enter a custom property in the Property reference field.
- If you selected Section in the Message type field, enter a custom section in the Section reference field.
- To allow users to add comments to messages from the feed source, select the Allow comments check box. In the field that is displayed, enter the custom property from the data page that uniquely identifies the feed item, for example, Application.pzInsKey.
- Click Done.
- Optional:
Set the new feed source as default by selecting the Default
check box.
Default feed sources display feeds every time a page is loaded.
- Click Submit.
- Click Save.