Learn how to add a custom column to a Cora SeQuence webpart.
In the Template property, you specify the HTML that is rendered in the column. You can write JavaScript code between # signs, and the data variable contains the row's data. You can reference any column that is defined in the ServiceMetadata file, and also variables that are propagated to the webpart.
Procedure
- Navigate to
C:\Program Files\PNMsoft\Shared Resources\Components\Flowtime\Config\ServiceMetadata. - Locate the config file for the webpart that you want to add a column to.
- Copy and rename the config file.
For example, add the word custom to the file name:MessagesServiceMetadata.configtoMessagesServiceMetadataCustom.config. - In the custom config file, add a section similar to the following example.
<CustomColumn Name="MyColumn" Caption="My Column" ShowCaption="true" Template="<span title='#=data.Tooltip#'>#=data.Content#</span>" /> - Navigate to
C:\Program Files\PNMsoft\Shared Resources\Components\Flowtime\Config, and copy theServices.configfile - Rename the file to
Services.Custom.config, and save it inC:\Program Files\PNMsoft\Shared Resources\Components\Flowtime\Config\ServiceMetadata. - In the
Services.Custom.configfile, in theServiceMetatdatasection of the webpart that you want to add the column to, change the path to the new Service Metadata config file you created.
In our example,ServiceMetadata="~/shared resources/Components/Flowtime/config/ServiceMetadata/MessagesServiceMetadataCustom.config