.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Register
 
Win Surprise Gifts!!!
Congratulations!!!


Top 5 Contributors of the Month
Sharon Maxwell
Post New Web Links

Upload functionality for List

Posted By:      Posted Date: September 02, 2010    Points: 0   Category :SharePoint
 
Hi all. I have a custom content type, let’s call it “Report”, inherited from Item object (basically because I need to use “Item-level Permissions” on lists based on this content type). Is it possible to implement “Upload functionality” we have on Document or Picture library to Custom List based on this content type? So, I need: Add Upload button to list (could be achieved by Custom Action button). On Upload button push – show UploadForm. After file is uploaded – NewForm appear with some field populated (Picture library is an appropriate example). Thanks.


View Complete Post


More Related Resource Links

How to enable check in check out functionality for a custom list?

  

Hi,

how could i enable check in check out functionality for a custom list? I know this exists for document libraries, but isnt this possible for custom lists?


Best regards,
Yavuz B.

My Blog http://www.starcoder.net

MOSS Upload Attachment to List Item 404 page not found

  
Hi, when some users upload an attachment to a list they receive a 404 Page not found error when they attempt to save the record (not at upload). Other users do not experience this. I have amended permissions and this had no effect and cannot identify a pattern. Does anyone have any ideas?

Feature Upgrade Functionality - Adding a new Content Type and List Instance

  
I've successfully used the upgrade functionality in SP 2010 to upgrade my list structures as needed. So far, these updates have been adding new fields to existing content types. Now, I have some new fields, content types and list instances to add, and am having trouble getting this accomplished. The scenario is this: - A new content type with a single custom field (also new), and a list instance for this new content type - A new field that is a lookup back to the new list instance defined above. This new field is added as an existing content type. - In my feature.xml, I have the Element Manifest specified with both new fields and an AddContentTypeField element for the new field being added to an existing content type:   <ApplyElementManifests> <ElementManifest Location="V1_04\Elements.xml"/> </ApplyElementManifests> <AddContentTypeField ContentTypeId="0x0100..." FieldId="{8028A1C8-1147-4DF7-B5C3-8A1F84A30360}" PushDown="TRUE"/> The result of running the update on this feature is: - My new field that is part of an existing content type is added - My new field that is part of a new content type/instance is added - My new content type and list instance is NOT created, therefore my lookup is broken Any idea why my new Content Type and List Instance is not being created? Do I need to specify there

Feature Upgrade Functionality - Adding a new Content Type and List Instance

  
I've successfully used the upgrade functionality in SP 2010 to upgrade my list structures as needed. So far, these updates have been adding new fields to existing content types. Now, I have some new fields, content types and list instances to add, and am having trouble getting this accomplished. The scenario is this: - A new content type with a single custom field (also new), and a list instance for this new content type - A new field that is a lookup back to the new list instance defined above. This new field is added as an existing content type. - In my feature.xml, I have the Element Manifest specified with both new fields and an AddContentTypeField element for the new field being added to an existing content type:   <ApplyElementManifests> <ElementManifest Location="V1_04\Elements.xml"/> </ApplyElementManifests> <AddContentTypeField ContentTypeId="0x0100..." FieldId="{8028A1C8-1147-4DF7-B5C3-8A1F84A30360}" PushDown="TRUE"/> The result of running the update on this feature is: - My new field that is part of an existing content type is added - My new field that is part of a new content type/instance is added - My new content type and list instance is NOT created, therefore my lookup is broken Any idea why my new Content Type and List Instance is not being created? Do I need to specify there

Is there a way to upload multiple files to a SharePoint List Item in MOSS 2007? I can not use Doc Li

  

Hello,

Is there a way to upload multiple files to a SharePoint List Item in MOSS 2007? I can not use Doc Library because of the funcationality.

Thank you,

Kishore


Kishore

File upload error -List View threshold setting

  

When I was trying to upload multiple images it was showing the following error.

"Failed to upload file 'filename'Try uploadiing again"

So when I looked into the Picture library setting it was showing

 

List view threshold :

5050 items (list view threshold is 5000).
The number of items in this list exceeds the list view threshold, which is 5000 items. Tasks that cause excessive server load (such as those involving all list items) are currently prohibited.

Learn about managing a large list or library and ensuring that items display quickly.

 

Whether it is the error with the threshold limit.If so whther I can change the limit and is it safe?

 

 


File upload in asp.net data list control

  
iam not able to get the file upload control posted file name in the asp.net datalist control. Can any one please give me the solution.

Get SharePoint list view functionality on SPGridView

  

I am trying to create a single view for all the list items (assume from three lists) within a site. I have retrieved the data through SPSiteDataQuery. But couldn't get the look and feel of the SharePoint list view initially. So I have tried using "SPGridView" instead of "GridView" and applied styles of the SPListView. But the problem here is,

The data i retrieved are all plain texts. When I use <SharePoint: ListView> and <SharePoint:ListViewByQuery> i am able to get the SPListView look and feel as well as the list items properly. But using these controls I could only able to get the list items from only one list at a time. Is this a limitation?

Note: I am trying to fetch the fields like "Title", "Created by", "Created Date" which is common and available in all the lists.


Vijayaragavan, MCTS

On excel sheet upload read the workbook and populate data to sharepoint list

  

Requirement in my current project:
In a document library when I upload an excel sheet, a specific workbook has to be read and the contents have to be uploaded to a sharepoint custom list.
The approach followed was create an event receiver and register as a feature. Following is the code for event receiver.

public override void ItemAdded(SPItemEventProperties properties)
        {
            base.ItemAdded(properties);
          
            var list = getSPList("{150301BF-D0BD-452C-90D7-2D6CD082A247}");          
           
          
            SPListItem doc = properties.ListItem;
            doc["Msg"] = "items deleted from req list";
            doc.Update();
            string excelname=doc.File.Name;
&n

How to Customize SharePoint List form: newform.aspx to add functionality similar to a repeating tabl

  

Hi,

 

I want to customize SharePoint List form: newform.aspx to add functionality similar to a repeating table in InfoPath?

I’d like to achieve similar functionality using in SharePoint Designer and Javascript/JQuery.

 

Any suggestions / links / examples are sincerely appreciated.

 

Thanks 


Abhijit Sil

Adding Dynamic Rows in ASP.NET GridView Control with TextBoxes and with Delete functionality

  
In my previous examples, I have demonstrated on how to add dynamic rows in GridView control with TextBoxes and how to save the values into the database. Now, seems that most of the developers are asking if how to add a delete functionality with it. So in this example, I'm going to show on how to delete a certain row in the dynamic GridView with TextBoxes.

Upload Multiple File using JQuery in asp.net

  
In this article I have explained how to upload multiple files using file upload control. I have used jQuery plugin for uploading multiple files.

I have also explained how to check for file type, file maximum size limit using jQuery & also using server side validation code.

Ready made List Types provided by SharePoint

  
SharePoint provides some out of the box List Types. Some of the most used ready made list types that SharePoint provides currently are listed below:

Export SharePoint List to Excel Spreadsheet Programmatically using C#

  
In SharePoint applications, Custom Lists are used to store business data and Document Libraries to store the documents. But for data manupulation and analysis, Microsoft Excel provides very rich features as compared to SharePoint Lists. That's why people still loves to work on Microsoft Excel Sheets.

Dropdown list in ASP.NET - How to get value selected

  
am sure this must be very simple, but unforunately I can't figure it out.
I have the following code which populates the dropdown lists from the database. This works fine. Now, when the user selects a particular employee name from the list, I want to get the Employee Id of the selected employee. i.e. I need to get the "Eid" value. I can do this if the EId is loaded in the dropdown list, but in this case only the employee name is displayed. Please let me know howI can get the Eid value even though it is not loaded in the dropdown list.
I would really appreciate your help

Creating Sites/Lists/List Items under Current User Context in SharePoint By Using SPUserToken

  
Usually we do this by performing the action under RunWithElevatedPrivileges method and updating the listitem using SPListItem.SystemUpdate() method (see here). but this approach has its own flaws like (RunWithElevatedPrivileges will run under system account, we cannot use SystemUpdate for SPSite,SPWeb,SPList, since it runs under system we will "CreatedBy" by as SystemAccount).

Editable Gridview with Textbox, CheckBox, Radio Button and DropDown List

  
This is an example of an editable gridview containing different ASP.NET controls. When user wants to edit values in gridview, she/he can use these controls to edit existing values in Gridview Edit Mode.

Using the Code
Categories: 
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  Silverlight  Others  All   

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend