关闭

QuickFlow工作流Executing事件中保存值

461人阅读 评论(0) 收藏 举报

<QFL:FormField ID="txt_join" runat="server" FieldName="Participant" ControlMode="New"></QFL:FormField>

protected void btnSwf_Conference_Executing(object sender, System.ComponentModel.CancelEventArgs e)

{

((Microsoft.SharePoint.WebControls.TextField)this.txt_title.Controls[0]).Text = vCollection.ToString();

 ((Microsoft.SharePoint.WebControls.NoteField)this.txt_Remark.Controls[0]).Text = "testSaveExecuting";

 SPFieldUserValue v = new SPFieldUserValue(web);
  SPFieldUserValueCollection vCollection = new SPFieldUserValueCollection(web, "Participant");

     foreach (int i in intmm)
     {
           v.LookupId = i;
           vCollection.Add(v);
     }

  ((Microsoft.SharePoint.WebControls.UserField)this.txt_join.Controls[0]).Value = vCollection;  //不可行,可再其他环境中测试
   WorkflowContext.Current.DataFields["Participant"] = vCollection;  //可行

}

 

 protected void btnSwf_Conference_Executed(object sender,EventArgs e)
 {}

 

StartWorkflow->Executing->save item and real start wf->Executed.

0
0

查看评论
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
    个人资料
    • 访问:419470次
    • 积分:4576
    • 等级:
    • 排名:第6670名
    • 原创:65篇
    • 转载:139篇
    • 译文:0篇
    • 评论:22条
    最新评论