Nintex Connect

The Official Community Site for Nintex Software Products, including Nintex Workflow 2007, 2010 and 2013; Nintex Workflow for Project Server 2010; Nintex Reporting 2008 and Nintex Analytics 2010; Nintex Forms 2010; Nintex Live and Nintex SmartLibrary.
Welcome to Nintex Connect Sign in | Join | Help

Passing Value from Custom Task Form

  •  06-12-2009, 9:19 AM

    Passing Value from Custom Task Form

    I am working to create a custom task form using the instructions and sample provided with the Nintex SDK v1.1.  I have added the additional form field that I need and am now at the point of passing that value back so it can be used in the workflow.  Although the sample VS solution has a placeholder for doing this I am not sure how to accomplish it.

    Here is the sample code section where I believe I need to make my change:

    // If you need to write additional collected data to the list item under workflow,
    // you would do so here:

    // item[SPBuiltInFieldID.Title] = "value";
    // item.SystemUpdate();

    I have added a 3rd radio button in my custom form to allow the user to Request a Change (in addition to Approve or Reject).  Since I can't change the logic to add a 3rd branch to the Request Approval action itself I want to pass a value back to my workflow that indicates a change was requested so that I can branch off in the Reject side by checking the value. 

    Where I am stuck is what to use in the section above for [itemSPBuiltInFieldID.Title].  Is this a variable I create here in the form code, a workflow variable, or is it a column in my list?  In any case, how do I create/reference it?  For some reason the sample just doesn't make sense to me for this part, I can't understand how the form code is going to compile since it's not tied to either a specific list or workflow in order to check whatever I put in to reference the field...

    Thanks!
    Chanda

    I have added a 3rd radio button in my custom form to allow the user to Request a Change (in addition to Approve or Reject).  Since I can't change the logic to add a 3rd branch to the Request Approval action itself I want to pass a value back to my workflow that indicates a change was requested so that I can branch off in the Reject side by checking the value. 

    Where I am stuck is what to use in the section above for [itemSPBuiltInFieldID.Title].  Is this a variable I create here in the form code, a workflow variable, or is it a column in my list?  In any case, how do I create/reference it?  For some reason the sample just doesn't make sense to me for this part, I can't understand how the form code is going to compile since it's not tied to either a specific list or workflow in order to check whatever I put in to reference the field...

    Thanks!
    Chanda

View Complete Thread
Powered by Community Server, by Telligent Systems