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