I am trying to modify the List View of Link list in SharePoint 2010. What I need to do is to allow/disallow users to order item of Link list programmatically. We can do this easily using SharePoint browser.
How to do this using SharePoint UI.
Goto List->Modify Views.
There is "Sort" option "Allow users to order items in this view? ".
But I need to do this programmatically and the accessor "SPView.OrderedView" is read only so I am struck.
I can however change the sorting columns using CAML.
Any suggestion will be greatly appreciated.
Thanks
Prakash Tandukar
There is a similar thread of MSDN Forums - Ordering View Programmatically. Hope this helps.
Related
I am having a page with documents loaded in SharePoint 2010. I have three buttons below each documents in the page and they are 'Like','Unlike' and 'Comment'. So whenever people go there and see the documents they can click on any buttons of their wish.
My question is how to take the hit count of these buttons seperately and display it for each document. Is it possible to create a list with having these three columns and handle it using Client-Side scripting. Any suggestions or help is much appreciated.
Each item in SharePoint has a property bag that can contain ad-hoc data like this. You could certainly add additional columns to store this data and update those columns but that does mean that users could easily manipulate the values via the UI. Since the property bag is only accessible via the various API's, you wouldn't have this issue.
For an example of accessing the property bag via CSOM (which would be your best option since I'm assuming you want your users to be able to like, unlike and comment without refreshing the page each time), see this post reading and writing property bag values using CSOM
Another thing to consider for comments is the existing notes functionality that exists in SharePoint 2010 and SharePoint 2013. These comments are ties into the social functionality and may give you a bit more bang for your buck. To show the comments page for a particular list item see this post SharePoint Social Data using Javascript
Is there possible to do quick search by related entity fields?
In example, if we have Contact lookup field on Lead entity. Can we search Leads by Contact's email address or address name?
Can you refer me to some tutorials.
I know that this is possible by using 'Advance find' option.
Thanks in advance.
Sadly, it's not possible to natively configure quick search to set attributes on related entities as "find columns".
As you might be aware, the native solution would be to find contacts by email address then open their record to look at their Leads.
The only other solution I can imagine would be to embed a custom Silverlight or ASPX page behind a navigation or ribbon button. In this case you could execute your own logic for searching but would not get the rich functionality of the native CRM grid without a lot of work.
I am wondering if it is possible to have a custom form in Sharepoint 2010 where I am able to add/edit a calendar event and access the attendees list that is normally visible on the workspace page.
I assume that perhaps I need to at least hard code a workspace to be selected as I believe attendees need to be assigned to a workspace.
Open to suggestions as I'm new to Sharepoint but seems crazy having to create or link to a workplace for each event.
Greatly appreciate any help.
#WashBurn not sure if this what you are looking for. Goto your calendar - list settings. goto the "Content Types" section. click the content type...should be event. from there click "Add from existing site content types " and attendees should be in there. hope that helps!
There is a simple (unfortunately not intuitive) way to achieve what you are trying to do.
click on list settings for your calendar list. You will see about half way down a section called content types.
![enter image description here][1]
Click on the event content type (which should be there by default.
this takes you to another similar screen where you can simply add the attendees column.
Once you know that attendees are part of an event it is then intuitive.
Hope this helps.
This is one of many nasty little things that come up when you try to build your meeting management on SharePoint. Other very common problems include integration with any e-mail client, first of all Outlook but not only, sending meeting requests from SharePoint and handling the respoded attendee's status...
The SharePoint calendar e-mail extension is a third party solution that might solve your problem.
Here is the link: http://www.sapiens.at/en/products/pages/sharepoint-calendar-e-mail-extension-3.0.aspx
Every SharePoint list (wether it's document library, calendar, lnks or custom list) have both a Create Form, Edit Form and a Delete Form. Each of which you through SharePoint designer can create your own custom versions of, in your case, this is needed to edit a Calendar List item with its associates/attachments.
Read one of Microsoft's own guides on how, here
Although this is a very old post, i just ran into the same issue and figured out a way to solve this issue.
Simply go into the Content Type 'Event' and add the Column 'Attendees' :)
Then you can also use the attendees as input for a workflow, e.g. to notify them on Event creation/update. i attached two Screenshots to show how you can do that using SharePoint designer!
With this phrase you can add the Link to the Event into the Mail Body:
[%Workflow Context:Current Item URL%]
Hope that helps other people in the future.
I believe I have the solution we are all looking for.
Create a standard event calendar (the one that does not have attendees)
Add the 'Schedule and Reservations' content type to the calendar from the list settings page
Modify the 'Calendar' view so the filters read
attendees is equal to me
OR
attendees is equal to
The second entry is completely empty but allows SP to match for no attendees
You can add more columns with OR statements if you need to be sorting based on additional groups
This worked for my needs, hope it works for everyone else
I'm rather new to this SharePoint stuff so be easy with me :)
What I am trying to do is have one complete list with all documents (Shared Documents), each assigned a certain DocumentType (managed metadata), and then show only some of these files depending on each web page within sharepoint you look at. Now i know about key filters, but don't I have to set these each time i want to filter? I basically want a filtered view on metadata for each page all related to Shared Documents
Thanks in advance
:)
Navigate the site containing list or library.
Press "SiteAction"->"View all site content" and choose your list or library.
In the ribbon choose "List"->"Create View"-> "Custom view in SP Designer".Create your personal view.
After it, you can go to "List"-> Current view" and choose your view.
I have created a Custom Edit Form for a custom list using SharePoint designer. I need to check that the current user is the author of the list item before displaying the form as only the author should be able to edit this content. I don't have server access so want to do this in the form itself using XSL. So far, I haven't been able to retrieve the Author / Created By value. Does anyone know how to get at this value?
Thanks for your help
Iain
Update:
I can see now that the Edit Form is using a datasource which basically returns a view containing all fields in the content type. "Author" is not part of the content type (which is a custom one). I can't see any way of adding the Author to the content type. Does anyone know how this can be achieved as i think this would solve the problem.
Cheers,
Iain
Isnt it possible to use the View/Edit access settings for the list? You find them under "List settings -> Advanced Settings" or somthing like that.
To bar someone form editing an item he should not, I would not edit the edit form of the item but do this by the item's permissions set. Therefore I would add an event handler to the list which changes the list items permissions after its creation, so that only the creator of the document has the permission to edit it.
Informations about event receivers can be found on Brian Wilson's blog.
I think JMD is right. You can do this without a custom form or any coding. From the list's menu bar select Settings -> List Settings -> Advanced Settings
Once there, you should see an option in Item Level Permissions to restrict edit access to only the item's author.