The Customer List
widget is a sample Data Viewer
widget that is configured with a URL that points to a feed in the catalog. The feed data is a sample of the type of data you may find in a sales person's spreadsheet of customer data. It contains customer names, addresses, zip codes, tickers, and company URLs.
When configuring the Customer List
widget, you can limit the number of rows in the table to accommodate the amount of data you want to display, control the appearance of the table by adding a title and setting font properties, and configure the table to highlight or filter rows when column values meet a specific criterion.
After dragging the Customer List
widget onto a mashup page, you may get the following error:
Unknown error. Make sure the data source is either a
valid Atom feed or a document in CSV format.
This occurs when IBM® Lotus® Mashups and IBM InfoSphere MashupHub are installed on separate servers. As a workaround, click Edit Settings
in the widget's display menu, and change the feed URL in the Data source URL
See the following table to learn which events the Customer List
widget can send and receive:
Table 1. Events for the Customer List widget
|Table as URL (ATOM): sends an Atom feed URL from the catalog. This is the URL that points to the data that is currently being displayed in the widget. ||Table using URL (ATOM): receives and displays the content from the URL of an Atom feed in the catalog.|
|Table as URL (Table): sends the URL of the CSV file that contains the data. This is the URL that points to the data in the CSV file that is currently being displayed in the widget.||Table using JSON: receives data in a JSON array format. |
|Table as Table: sends data in a table payload format. ||Table using Table: receives and displays data in a table format. |
|Row as Text: sends data from the selected row in CSV format. ||Table using URL (Table): receives and displays the content from the URL of a file that contains data in CSV format.|
|Row as Table: sends data from the selected row in a table format.|
|Cell as Table: sends data from the selected cell in a table format.|
|Cell as Text: sends data from the selected cell.|
|(Column name) as Text: sends data from the selected row in this column. |
: Display customer names in the Event Explorer
widget by clicking fields in the Customer List
- Drag the Customer List and Event Explorer widgets onto the page.
- Click the display menu in the upper right corner of the Customer List widget frame, and select Edit Wiring. to open the wiring interface. Do the following steps:
- Click the Send tab.
- In the Select content to send section, select Customer_Name as Text.
- In the Select a widget to receive content section, select Event Explorer.
- In the Select an action section, select Event data using Any Data.
- Click Done.
- In the Customer List widget, click different rows to display customer names in the Event Explorer widget.
Parent topic: Widget reference: imc3