Can any one tell me that, Is is possible in wss to have our custom column in a view of list. The way how we are adding edit and delete column in asp.net grid by setting autogenerateedit button property to true. I have to write my custom login on click event of that button. This action is going to be common for all list items.
Thanks
Sachin K
I am afraid that it is not possible out of the Box in SharePoint (WSS / MOSS). If you want to have such an option, you might need to create a Separate page that will have code to do the opertion. Try out the SPGridView and SPDataSource.
Else I would suggest (Recommend) you to have a look at the DataSheetView option provided by the List, it will list List item details as all editable format, like Excel sheet.
Related
I want to be able to filter a SharePoint list based on the values present (easy by clicking the filter button at the top of the list for each column). However I'd like to give options in a drop down menu and once chosen the list would be refilted based on the options I give. Is this possibile to do in the browser or would it require designer or actual code? Thank you.
This is all SharePoint 2010 Enterprise Server knowledge; I've never used 2007.
What #Ryan is alluding to here is that you can click a down-arrow on most list columns to filter them. One caveat is that if the column is multi-select, it won't display a drop-down. (SharePoint doesn't know how to group, filter, or sort on multi-select columns.) Another caveat could be that if you're displaying the list items in such a way that their headings don't appear (such as in a List View web part, or maybe in some of the styles...) you obviously won't be able to filter.
A solution might be to use a "SharePoint List Filter" web part, which uses a list column as the source for filter values which can then be sent to other web parts -- such as a List View web part. Presumably, you could use the list you're intending to filter as a source for the Filter web part itself. From a UX perspective maybe this might help you display the list with different styling, but still get the drop-down filter directly in the content area.
A caveat with the "SharePoint List Filter" web part is that it's not actually a drop-down per se, but instead shows a little filter icon that pops up a dialog in which users then have to select a value.
Note there's also the "Managed Metadata Navigation" feature that would give users dropdowns (for e.g. choice columns) and metadata filter fields (for managed metadata columns). These show up in the Quick Launch (left-nav area) if configured on the list/library settings. The feature must first be enabled on the site.
I've created several custom columns in the Tasks list named NotifyUser and IsUserNotified. These columns are not supposed to be changed by user. I change them programmatically only. Is there any mechanism to:
Hide those columns from the NewForm, EditForm (I wanna use
existent Forms).
Skip executing workflows when any of those two columns been changed.
Exclude columns from the notification mails (as long as user doesn't know anything about these columns, there is no need to show them).
You only can control these things if you are creating your field programmatically or via a field schema definition (deployment via WSP Solution and a feature):
Set the property Hidden to true in order to hide the field in user forms and views.
Refer to: SharePoint Workflow: how to update the item without triggering the workflow again
Should be done by 1.
You can edit your view by going in List Tools->List->List Settings->Views.
Then click on the name of your List from where you can uncheck the column that u dont want to show to the user and click ok.
How do I add an item in a column as a link in a list in Sharepoint Server 2010?
What is the type of column which is showing link to another document?
Let me see if i understand you correctly.
You have seen the browse for document link in publishing sites, and you want this functionality in your standard list.
Unfortuately you cannot do this, the standard data types are:
http://office.microsoft.com/en-us/windows-sharepoint-services-help/create-a-site-column-HA010157769.aspx
So you are left with just plain old Hyperlink, which doesn't have the browse for document box.
If you try to create a site column with the datatype Publishing Hyperlink, and add it to your list, you should get an error message when you try to browse
"Cannot complete action"
You can add Calculated Value column in the list, and specify the formula for the column which will redirect you to the desired location.
You can do this with jQuery by parsing the link from the title with link or edit button. But also, if you want a non client side solution, there is a good article here http://www.sharepoint911.com/blogs/jennifer/Lists/Posts/Post.aspx?ID=70 on how to add a column and using a workflow fill that column with a "quick link" that the user can provide to people wanting to link to there document. It is a general approach that I think you can see could be adapted to various needs.
For a head start on a jQuery solution check out http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomization/thread/ebda8a32-a6cc-49fa-b7e4-81f762b26266/
In order to link document with list item, you can create "Hyperlink with formatting and constraints for publishing" site column and add it to any list.
If you need to browse and upload multiple files per list item, you can use 3rd party add-ons like Sparqube Document column.
There was a similar question asked but it wasn't exactly what I am trying to do.
Here is a link to the question: Auto Number Column in SharePoint List with Link to Item
Two solutons were offered to that question.
Could either of these solutions work for an imported list I have where Sharepoint has decided which column links to the item with edit menu? I want to change which column does this as I need to change the format and this means removing the column that has defaulted to being the link to item with edit menu.
You cannot dynamically change the menu column OOTB in SharePoint. To "move" the menu to a different column, you should create a new computed column and wrap the rendering (DisplayPattern) with the _EditMenuTableStart and _EditMenuTableEnd fields.
To see an example of how to do this, take a look at the "AddMenuColumn" PowerShell script from the iLoveSharePoint project on CodePlex. The script is pretty straightforward, so you should be able to translate it into code if you need that (or add declarative using features).
You could also just use the script as it is, to add the new menu column to your list.
How does one verify a text field with another list's column? I am currently populating a Drop down list with a datasource and then comparing the text field with items in the dropdown using javascript. Is there a better way?
The second problem I am having is how to trigger the Validate Function.
I am aware of two custom forms for adding data to a sharepoint list. One is created using The Dataview Webpart in Sharepoint Designer and the other is created using the List Form Webpart in Sharepoint Designer.
I have a DataFormWebPart I created using Sharepoint Designer Insert Dataview ->Insert Selected Fields as New Item Form. This gives Save and Cancel buttons at the end of the form. How do I intercept the Save button event?
I found one solution but it only works with the NewForm page that has OK Cancel Buttons. http://www.codeproject.com/KB/sharepoint/Control_validation.aspx
You'll have to use an event handler if you want to validate the state of multiple fields. You can use the ItemAdding/ItemUpdating events if you want to cancel an item which is being added/updated.
properties.Cancle = true;
properties.ErrorMessage = "Your validation message.";
http://msdn.microsoft.com/en-us/magazine/cc163318.aspx
http://blogs.msdn.com/brianwilson/archive/2007/03/05/part-1-event-handlers-everything-you-need-to-know-about-microsoft-office-sharepoint-portal-server-moss-event-handlers.aspx
can you add query strings into the formula box for validation?
e.g. like this:
^[a-zA-Z]{2}[0-9]{6}[A-Za-z]{1}$
which validates against a national insurance number.
sharepoint says the column must = true,
so could I enter something like
[column name] = ^[a-zA-Z]{2}[0-9]{6}[A-Za-z]{1}$
I think you are trying to build a tool like this one called SharePoint Form Validation.
If so, take a look at this blog: http://office.microsoft.com/en-us/sharepointtechnology/HA101054791033.aspx?pid=CH100650061033
Hope this helps!