- Simple SharePoint HTML forms.
- InfoPath forms published to SharePoint.
Ok, so I have a list (external in my case) and this is on a page.
- Turn editing on -> on the same page as the external list.
- Add a new web part: Under Categories select Forms. And then select 'HTML Form Web Part'.
- When the web part has been added click on the usual edit drop down arrow to the top right hand corner of the web part
- Select 'Connections' -> 'Provide Form Values To' and then select the List/Web part that we are filtering
- Click on 'Configure Connection'
- Select the field from the 'Consumer Field Name' that matches the field you want to filter the data on.
- Press finish and it will now work as a filter.
The filter is only filtering on the list below, not the actual query that is being sent to the data source. In my situation the data source is an external SQL server. This, by default, gets back all records from a specific table and limited to 1999 (the default max limit). The form added above filter on these 1999 returned records, not the original dataset from the database.
I have just left the standard text field on the form. You can add other options to the form however you can only connect one field to a list. You can connect multiple lists using multiple fields.
No comments:
Post a Comment