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

Top 5 Contributors of the Month
Gaurav Pal
Post New Web Links

New List Item Vs. Edit List Item

Posted By:      Posted Date: April 10, 2011    Points: 0   Category :C#

Okay, I have a WF that works on NEW created Items only, But, if the item gets Rejected and then the Creator goes back into the Request/list Item and fixes what he has wrong, it changes the Status back to Pending, which is fine, but it doens't go through the process again treating it like a New Request, kicking off the WF for NEWLY created items.

What do I do??
Trying to figure it out. Any help would be greatly appreciated..

View Complete Post

More Related Resource Links

Cannot enable Ribbon Edit Tab buttons and "connect" them to a list item in my custom webpart

I have one list with some custom fields and I want to develop a custom page. So, I created an ASPX page and added my custom webpart. This webpart has just a RichTextField, in edit mode, "linked" to one item of the list, like below: SPSite _SPSite = SPContext.Current.Site; SPWeb _SPWebProjects = _SPSite.OpenWeb("/Projects"); SPList _SPListProject = _SPWebProjects.GetList("/Projects/Lists/Project"); int _ID = Convert.ToInt32(this.Page.Request.QueryString["ID"]); RichTextField _RTF = new RichTextField(); _RTF.ID = "RTF"; _RTF.ControlMode = SPControlMode.Edit; _RTF.FieldName = "History"; _RTF.ItemContext = SPContext.GetContext(HttpContext.Current, _ID, _SPListProject.ID, _SPListProject.ParentWeb); _RTF.RenderContext = SPContext.GetContext(HttpContext.Current, _ID, _SPListProject.ID, _SPListProject.ParentWeb); this.Controls.Add(_RTF);   Then, I "turned on" the edit tab on the ribbon by doing the follow: protected override void OnPreRender(EventArgs e) { SPRibbon _CurrentRibbon = SPRibbon.GetCurrent(this.Page); _CurrentRibbon.TrimById("Ribbon.WebPartPage"); _CurrentRibbon.MakeTabAvailable("Ribbon.ListForm.Edit", string.Empty); _CurrentRibbon.MakeContextualGroupInitiallyVisible("Ribbon.ListForm.Edit", string.Empty); _CurrentRibbon.Minimized = false; _CurrentRi

Refresh Parent Page List after Edit Item Modal Dialog Save/Close

I am calling the Edit Item URL (EditForm.aspx?ID=x&IsDlg=1) via javascript code to bring up the Edit Item Modal Dialog. This works fine and dandy. But what callbackfunction should I invoke after the Save so that the parent list is refreshed? Is there a better way to do it than call reload on the entire parent frame? It almost looks like there should be a way to refresh just the list. Any help appreciated. Thanks, Jake.

Edit item title in a list on a mobile page

hello, can i edit an item title for a list on a mobile page in MOSS 2010 ? e.g i want my list items to appear as "New task StartDate:current EndDate:current" that includes three things the list title,startdate and enddate for the item. thanks

Access Denied Error While trying edit sharepoint list item


 I have a sharepoint site (2007) with two subsites . while I am trying to edit  list items in subsite its giving me Access denied error even though I have the Site collection Admin Rights. 

     Please help . 

How to make a sharepoint list column readonly or invisible while add/edit list item in sharepoint UI


 Hi Everybody,

I have created a list in sharepoint. In that list there is a field which I want to make read only or invisible when the user tries to add or edit a list item through sharepoint UI. I want this because that particular field gets populated through a webpart and direct data entry into that field is unnecessary. Is there any way to make a sharepoint column (for me its a picture column) read only or invisible in the sharepoint UI.

thank you,

Arun Dutt

accessing checkbox list from with in edit item template.


Protected Sub dsEmployeesByDepartments_Selecting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceSelectingEventArgs) Handles SqlDataSource1.Selecting
        'Determine which checkboxes have been checked
        Dim selectedDepartmentIDs As New List(Of String)
        For Each li As ListItem In CategoryList.Items
            If li.Selected Then

Custom List Edit Item Form


If I change the default querystring variable from ID to CustomID then it doesn't show the relevant record from the list.

I did this to avoid an error

"No item exists at http://moss-server:18498/pagescollection/EditGroupMeetingPlannerForm.aspx?ID=88.  It may have been deleted or renamed by another user."

What should i do, to avoid this error. Plz help me.

Change "linked to item with edit menu" in a list.

In a custom list imported from spreadsheet can you change the "linked to item with edit menu" to another column othe rthan the defaut?

Edit Item link pointing to wrong list

I made a list from a template. The Edit Item link in this new listlist is pointing to the wrong list (one that doesn't exist any longer - the one the template was made from) and so I get a 404 page error.  I have modified the list properties in Designer to point to the correct list/listfile. Then when I try the edit link I get "an unexpected error has occurred."  Is there a way to correct this or am going to have to recreate the list and not use a template.  What is the point of using a template if it points to the wrong list?
There are no mistakes; every result tells you something of value about what your are trying to accomplish.

how to customize the WSS3.0 List layout for new item and edit item.


is there a easy way to format the layout of items of a list, defaut is from top to bottowm:

Item1, value1

Item2, value2


Can I layout out like :

item1, value1; item 2, value2

Item3, value3

Item4, value4;item5, value5?


Open a list item edit form with workflow

I have a workflow that creates a new item in another list.  I need the workflow to open the new item on the Edit form.  Is this possible?  Any assistance would be greatly appreciated.  Thank you.

Edit List Item - Access Denied


There are supposed fixes for this but I cannot get a decent reply so i am posting a new thread. I am getting the same error as what was in this thread.


I want to run the script but cannot without getting an error.

Can I get step by step of how to run this script? Save the code into what? Run from what? On server or workstation?

I am a sharepoint admin, not a developer so I'm a bit clueless when it comes to code language...

using System;
using System.Collections.Generic;
using System.Text;
using Microsoft.SharePoint;
using System.Xml;

namespace CA_TestingHotfix
  class Program
    static void Main(string[] args)

    static void FixField(string[] args) 

Show confirmation dialog on list item edit

When users edit a  list item and click o.k.  How can I show a dialog box to confirm ( yes / no) the change. 

problem...i want a list item to populate all data in gridview!!!


i have a dropdownbox and a gridview

what I want is to have a list item which populates all data in a gridview.

I have tried using list item selected value=0 but to no avail.

what is the easiest way to achieve this?

Attach Workflow to Task List, don't get option to manually start workflow via dropdown on task item



I am running WSS 3.0 with other workflows which are functioning correctly.  I created a new workflow in Visual Studio 2008 and was able to successfully run it in my dev environment.  I attached the workflow to a task list in my dev environment and was able to manually start the workflow by using the drop down workflow option and using the menus to manually start it.  I installed this workflow in our production environment and attached it to the task list (which had a SPD workflow attached to it which stopped working about a month ago).  I made sure that the option to manually start the workflow was checked.  When I tried to manually start the workflow, (hover mouse over title, drop down) there isn’t a workflow option.  The workflow also will not start automatically when a task is changed.


I attached this same workflow to a different task list in production and get the option to start it.


I have tried creating a small workflow in SPD 2007 and attaching it to the task list.  It shows that it is attached, when I look at the workflows that are attached to the task list, but I still don’t get the option to manually start it.


I have checked my security and I have fu

Workflow Task And Relevant List Item


Hello there...

1. What is the name of  the field thats connect between the task item and  the list name or guid and the list item id or guid

2. SPD: how can when starting the workflow how can i ensure that the initial form variables will be saved at the workflow task list

Many Thanks



Assigning users when creating a list item in a workflow


I'm using a workflow to assign tasks to users.  When I try to assign the task to a group (set in the workflow designer), the workflow gives me an error.  When I change the assign to property to a single user, the workflow works perfectly.  How do I get the workflow to assign the task to the group?  Or if that's not possible, can I get it to assign it to more than one user?


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