Posts

Showing posts with the label MatchPoint

Sorted Dropdown for MatchPoint Form WebPart with Distinct Elements

Image
MatchPoint is a handy framework for creating fast custom solutions. In this post I'll show you how you can bypass some limitations with the Form WebPart. A customer of mine wanted a sorted select in his form webpart in which he can choose the assigned user of a task list. Something like that: Example of a sorted Dropdown 1.Attempt - The SPListChoiceProvider You can do this easily with a ChoiceField in the Form WebPart. As provider (Source of the Dropdown) a SPListChoiceProvider would be a logical choice. In the SPListChoiceProvider you can select the source list, a key and a value column for the dropdown. Additionally you can also select "UseDistinctValues" to remove duplicate entries. One drawback or missing feature here is the ability to choose an order for the elements. Another is that you can only choose a single field as key. There is no possibility to combine fields. 2. Attempt - The ExpressionChoiceProvider My second attempt was to use...

MatchPoint - Configuration of Tag-Icons

Image
Each Tag in MatchPoint can have its own icon. The configuration of the icons can be found in the MatchPoint Administration sitecollection, which hosts the MatchPoint instance. MatchPoint Instance Administration in the Site Settings The icons for the tags must be located in the images subfolder of 14hive folder in each web frontend server . The easiest way to open the images folder is to paste the following command line into the explorer bar: " %COMMONPROGRAMFILES%\microsoft shared\web server extensions\14\Template\Images " The images will not be resized so if you create your own images please ensure that they have the right format, 16x16 I think. Within the images folder you can create your own subfolder structure for your images. Images folder in 14hive As an example we have the following Tag structure. Sprache (Language) is a toplevel tag. It has 3 other child tags : German (Deutsch), French (Französisch) and Italian (Italienisch). Taxonomy After you...

MatchPoint Condition - Show only data from last months

Image
If you have a MatchPoint Composite oder DataGrid WebPart and you want to show data from a list which is from current month, from the last months or coming months you can use following condition(s). The field you check should be DateTime field. MP Configuration The condition checks if the content of the Date field is lower than the 1st of the current month. If you want the last day of the month, you can use AddMonth(1).AddDays(-1)

Get User Email in MatchPoint

Image
If you want to show the user name with a email link in MatchPoint, you can use the SPHelper.GetUser() method. In a DocLib you can use the fields "Editor" or "Modified_by". In the following example I have a ListDataProvider with a XslTransformer. The first thing we have to do is a mapping. Mapping of the DataItem If the field you want to show (Editor) is of type SPUserField you should cast it to String with ToString() or DisplayString. Now you can you the mapping in the XSLT. XSLT