End User FAQ

How to apply filters for Data Type?

Answer:

To apply filters for Data Type do the following steps:

  1. Create new Data Type at Administration mode | Data
  2. Go to XSLT functions and add new function:

    "Settings" tab:
    - fill form

    "Input Parameters" tab:
    - Add new parameter “Filter”
    - “Parameter type” should be Expression<Func<XXX,Boolean>> (where XXX is the name of your type)
    - “Default value” should be <Your namespace>. <Data type name>.ActivePageReferenceFilter, FieldPredicatesFiler or other depending from type of your datatype
    - “Test value” could be <Your namespace>. <Data type name>.DataReferenceFilter and in Data Reference list should be selected some element (optional)

    "Function Calls" tab:
    - Add new function “<Your namespace>.Get<Data type name>Xml”
    - Click on “Filter”
    • “Parameter value type” should be “Execute a function call“
    • “Complex function call” should be “Composite | Utils | GetInputParameter” with parameter name Filter

  3. At "Preview" tab you can see filtered data.