Ask a questionAsk a question
 

AnswerUsing list view web parts to insert new items in a list

  • Sunday, November 08, 2009 8:37 AMMina Samy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Hi all
    I have a list that consists of  single column containing item names
    Is it possible to create a view that contains the items column and another column that has a check box
    and when the user checks the check box the related item name is inserterd into  another list ?
    is this possible ?
    thanks
    Mina
    • Moved byMike Walsh MVPMVP, ModeratorSunday, November 08, 2009 9:15 AMnot a programming question (From:SharePoint - Development and Programming)
    •  

Answers

  • Monday, November 09, 2009 5:44 AMGanesh Jat Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    What i understood is tht , u dont want to add an extra column for check box in the list, You only want to include an option in the view.
    If this is the case , then workflow or event handler may not be a solution , bcz the checkbox is not in the schema of the list.

    Better to create a custom webpart for this view and add an extra column for check box in the table along with other list columns and attach an onclick server side event with checkbox  which will copy the list item in another list using OM. To track the list item you can use list item ID field as a check box control id or name.

    • Marked As Answer byMina Samy Monday, November 09, 2009 7:37 AM
    •  

All Replies

  • Monday, November 09, 2009 2:14 AMFabian G Williams Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     

    The way i see that is to do an Event Handler... or you could do it via a Workflow on the Check Box column

    Solution with Event Handler

    a. So you would need another list with the item you mentioned being a lookup in that list with another column with your check box
    b. You could do either through JQuery or a Custom Event Handler what you are discussing


    Solution with Workflow

    A. same as in he above (a)
    B. You have a SPD workflow that inserts whatever into another list.

    Hope that helps.

  • Monday, November 09, 2009 5:44 AMGanesh Jat Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     Answer
    What i understood is tht , u dont want to add an extra column for check box in the list, You only want to include an option in the view.
    If this is the case , then workflow or event handler may not be a solution , bcz the checkbox is not in the schema of the list.

    Better to create a custom webpart for this view and add an extra column for check box in the table along with other list columns and attach an onclick server side event with checkbox  which will copy the list item in another list using OM. To track the list item you can use list item ID field as a check box control id or name.

    • Marked As Answer byMina Samy Monday, November 09, 2009 7:37 AM
    •  
  • Monday, November 09, 2009 7:38 AMMina Samy Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Thanks Fabian and Ganesh
    I believe that Ganesh solution is more applicable
    thanks
    Mina ------------------------------------------------------------ http://www.learn-mvc.blogspot.com/