Mobile Data Views allow you to customize the Index and Detail screen of a list. These custom views are then configured and presented through the Base Plugin. You have to use SharePoint Designer to configure these views since they must reside in a special folder within the list they are applied to.
We have 3 sample Mobile Data Views you can download. These will work with the out-of-the-box SharePoint Task list, Contact list and Document Library.
ContactsDataView.xml
TaskDataView.xml
DocumentLinks.xml
To use these, follow the instructions below:
- Connect to your site using SharePoint Designer 2007/2010
- Browse to the List folder that you wish to apply the dataview to
- Within the List folder, create a folder named "__entree__". Mobile Entree will look in this folder for custom data views to use.
- Add the Mobile Data View XML file to the __entree__ folder.
- Browse to the Mobile Entree Configuration page of the site
- In the Mobile Entree Base instance you have created, the Mobile Data View will show up as a selectable view.
Note: Every time you make a change to a data view, you will need to take the following steps to have your changes reflected:
- Browsse to Mobile Entree Config and click Save Settings. This will load your data view into the configuration of the app.
- Recycle the Application Pool. There is currently a bug in the XSL caching that will not purge it when Save Settings is clicked. This will be patched, but for now you will need to recycle the app pool.
The samples we have provided are for Platform A only (iOS, Android, WP7, Symbian, BB 6.0). They can be extended to support all platforms.
The CSS styles used in these dataviews are included in the out-of-the-box CSS files in Mobile Entree. If you wish to use your own CSS Styles, you can include them by adding a <UserAgentMapping> section to the top of the file, just under the <Properties> node like the following:
<UserAgentMapping>
<UserAgent match="" type="ajax">
<CSS>
<File name="DV_CSS" href="/Shared Documents/myDVStyles.css"/>
</CSS>
</UserAgent>
</UserAgentMapping>
When using a Data View in a document library, you will want to hide the __entree__ folder. There are a few ways to do this, but the easiest is to hide it in the view as shown below:
