Menu

Search

KWizCom Support Center


How to configure the List Filter Plus Connection Definition


anthony.pham
List Filter Plus web part

How to configure the List Filter Plus Connection Definition

 

Summary

This article outlines how to configure the List Filter Plus Connection Definition.



Product & Version

KWizCom List Filter Plus 4.3.xx for SharePoint 2007

KWizCom List Filter Plus 14.3.xx for SharePoint 2010

Resolution

List filter plus allows two types of connections:

1. Query WebPart connection. The connection allows you to get full CAML query from List FilterPlus web part and use it in your code.

Example:

private IFilterValues _QueryFilter= null;

[ConnectionConsumer("Query", "IFilterValues", AllowsMultipleConnections = false)]

public void SetConnectionInterface(IFilterValues filterProvider)

{

    if (filterProvider != null)

    {

        _QueryFilter = filterProvider;

        List<ConsumerParameter> l = new List<ConsumerParameter>();

        l.Add(new ConsumerParameter("Query", ConsumerParameterCapabilities.SupportsMultipleValues | ConsumerParameterCapabilities.SupportsAllValue));

        filterProvider.SetConsumerParameters(new ReadOnlyCollection<ConsumerParameter>(l));

            }

}

public string GetCAMLQUery()

{

            string camlQuery = "";

    if (_QueryFilter != null && _QueryFilter.ParameterValues != null && _QueryFilter.ParameterValues.Count > 0)

        camlQuery = _QueryFilter.ParameterValues[0];

            return camlQuery;

}

2. TableViewer WebPart connection. The connection allows you to get DataTable

The connection uses KWizCom.Contracts.TableViewer.IWebPartTable_TableViewer interface whyich defined in KWizCom.Foundation.dll assembly


On a scale of 1-5, please rate the helpfulness of this article


Not Helpful
Very Helpful
Optionally provide private feedback to help us improve this article...

Thank you for your feedback!


Comments require login or registration.

Details
Last Modified: 5 Years Ago
Last Modified By: anthony.pham
Type: HOWTO
Rated 1 star based on 1 vote
Article has been viewed 1.6K times.
Options
Also In This Category