Sharepoint 2010 advanced sort - sharepoint

I'm using advanced sort for a date view web part to set up a 3 part hierarchy. One of the fields is #Meeting_x0020_Name. The # sign returns all attributes for the context node, which gives me something like 3;#2014 2nd Quarter Meeting.
I don't want to display 3;# but only meeting name. How would I do that?
I'm not using code, but only the built in functions in SP.

Use this formula:
substring-after(#Meeting_x0020_Name,'#')

Unfortunately, I don't think this is going to be possible with out-of-the-box web parts in SharePoint 2010. Sorting is a bit limited already in 2010 an there is nothing built into the out-of-the-box web parts to allow you to parse out the meeting name. You may need to consider a custom solution if this is a requirement.

Related

SPGridView - User selecting the columns

Is there a way to extend the SPGridView control in a webpart such that a user can select the columns that they want to display? Kinda like when creating/modifying a view for a list?
Thanks
SPGridView is not sealed so certainly it can be extended with this functionality. You would need to build your own data store of what users have chosen (a SharePoint list should suffice), make the UI modifications, etc.
One thing I've found when trying to extend the provided SharePoint controls is that even though most aren't sealed, often they aren't designed to be extended either. In some cases the members are obfuscated as well which in some cases can put an end to extension plans.
Make sure you research this as much as possible with some quick proof of concepts before devoting to this development. You may find it's necessary to write your own control from scratch (or find another standard ASP.NET control that provides this functionality and hook it up to a SharePoint data source).

How do you link Sharepoint Lists across different sites

I have googled this and seem to only be able to find the same Tutorial here or variations thereof. I have two lists. Each one is on a different site. I need to make a list/view joining these two lists. One site contains basic employee data, (such as department) and the other site contains details about that department that we need to show on a high level overview of employee data.
It's sharepoint 2007, two sites, same collection
I used this tutorial.
He mentions "Please note: If your lists are on another site collection you will have to use the Connect to another library... link" and he includes a screenshot.
Aonther way to go is to roll your own field type and make it similar to a lookup field but instead make it go fetch data from a list in a different sitecollection. I donĀ“t have ready example of something like this but this post atleast explains how to go about constructing a custom field type.
I would use Sahil Malil's technique. However this is much the same as the link to Microsoft that you've already given. Why doesn't this do what you need?
Here are a couple good places that have worked for me.
Connect to Another Library in SharePoint Designer 2010
Displaying a SharePoint List from Another Team Site

xsl for sharepoint calendar

I need to create a calendar which will join together data from a number of separate sharepoint team calendars (it's so that the press office in my organisation can see what's happening in each department side-by-side on the same page - what they would like is something like the ui for a shared google calendar).
I have discovered that I can create a linked source in Sharepoint which combines the various calendars and will provide xml output of the data I need. So what I would like now is an example of how to consume some xml and create the standard day/week/month views in a read-only calendar to my users.
What I have discovered is the following:
You can't attach a listviewwebpart - they use caml instead of xslt - they can't consume xml data. They use the object model to consume the list that it belongs to.
No source code for that web part. It's locked in a dll.
The dataformwebpart can consume any xml data source.
Some listviewwebparts can be changed to dataformwebparts but not the calendar.
Is there an example of an xslt calendar which can consume some xml and create the standard day/week/month views to get me going?
This is a common request, and not very easy with the standard web parts. You could try Ton Stegeman's Content by Type web part which I think allows you to roll up list items into a calendar, or alternatively take a look at (commercial) list rollup and calendar+ webparts from Bamboo Solutions.
http://www.ideseg.com/SharePointXSLToRenderCalendarsWithCsegRollUp.aspx
From Carlos Segura Blog, excelent way to do the Calendar Join.
It is very common now to expect you can add another calendar as a 'layer' along with an existing one. E.g. that is what we do in Google calendar, in outlook, on android. I believe this is how it is intended, and it ends the quest for sync tools, query questions, data webparts.
The same thing can be done in OOTB Sharepoint; see link below where they seem to have found the right answer. It is very easy to load an additional calendar once you vreated a calendar view.
http://weblogs.asp.net/sharadkumar/archive/2010/03/12/aggregate-sharepoint-event-items-into-your-calendar-view-using-calendar-overlay.aspx

How to create a shared document library in SharePoint that can be used in subsites?

We want to create a common document library on a certain site level and then create views on that document library in the different sub sites?
Is that possible in SharePoint?
Can it be done declaratively?
Rine
I would recommend to use the DataFormWebPart (requires SharePoint Designer to insert and customize the DFWP, the result can be exported to a feature)
The following blog entry lists a suitable SPDataSource sample:
SPDataSource and Rollups with the Data View
Good Luck!
Not out of the box. You will either need a third party "roll-up" ("roll-down") web part or you will need to write your own. OTB, views for lists/libraries are only visible at the current site level.
That being said, roll-ups (in one form or another) are probably one of the most common 3rd party seller for sharepoint (just a guess). In fact, I would bet there are several free projects out there that you could use (Check codeplex). You should have no problem finding one that meets your needs.
My suggestion would be to write your own, as this would give you some real good experience using the SharePoint object model and there really are no complicated concepts. Once you get past being able to do site navigation and accessing list data through the OM, you pretty much have all the tools you need.
Good Luck
I have found a cheep and great webpart which does a documents rollup from all subsites with search, paging and sorting functions.
http://speasysolution.miiduu.com/es-sharepoint-2010-documents-rollup
i used it, its simple and powerful

How to tie a dropdown list to a gridview in Sharepoint 2007?

This should be a really really simple thing, but for some reason it is just eluding me.
I want a Sharepoint page which will have a drop down list that is tied to a database lookup table.
When an item is selected and they click a GO button, I want it to update a gridview that is also on the page.
I'm looking for a simple how to - while assuming I'm a sharepoint idiot. BTW, I am using the Microsoft Office Sharepoint Designer.
Thanks,
Edit:
My need is actually very simple. I want to filter the results of a query using a drop down list. This used to be called a master - detail relationship.
For example, my regular data has school name, application name, and how long the application was running. Because there could be a hundred applications per school and there are 60+ schools, I only want to show one schools information at a time.
So, I want to put a drop down list at the top of the screen which contains the list of schools. When one is selected, the gridview should be updated to reflect the new schools information.
Chris.
I currently use a drop down tied to one sharepoint list to filter a dataview of another sharepoint List.
The instructions are here:
http://blogs.msdn.com/sharepointdesigner/archive/2007/03/05/asp-net-controls-filter-the-data-view.aspx
I'm not exactly sure of the specific needs here, but it seems that you are trying to stretch a bit beyond what Sharepoint Designer is well suited to. To look up data, you do have access via the dataview web part, which is here:
http://office.microsoft.com/en-us/sharepointdesigner/HA100948041033.aspx
However your filtering needs may prevent you from using this. If you want to do it .net without knowing too much about MOSS, you can use the "son of smartpart" (google it) which allows you to host standard .net user controls in webparts.
Hope this helps!

Resources