摸板开发记录

今天,用到这个摸板.

想记录下里面的两个主要控件


   

 

是获取列表中所有的列表项.

 相当于加载摸板名为AttachmentRows的摸板.

用FormField来呈现某个字段, 用ListFieldIterator来呈现所有的字段.

代码如下:WFTaskUserControl.ascx


                   
                     
 

   


       
           
           
            
                   
                      
 
 

 
                       
                   

               

                                              
           

           
           
        

        
        
           
           
           
                   
                   
                       
         
                   

               

            
            

                      
         

         
         
          
           
           
           
                   
                   
                                                            ValidatorEnabled="true" ID="AssignPerson"
                                    runat="server"
                                    SelectionSet="User,SecGroup,SPGroup"
                                    width='300px' MultiSelect="true"/>
         
                   

               

               
            
            

                      
         

         
         
         
         
         
                    Title="邮件通知">
           
           
           
             
                   
                   
                        
         
                   

               

               
            
            

       

         
        
        
        
               
                                     
       

       

       
       
       

 

 

CS代码:

      MyFormEdit.ItemContext = SPContext.GetContext(Context, workflow.ParentItem.ID, workflow.ParentList.ID, ElevatedSite);
               MyFormEdit.ItemContext.FormContext.FormMode = SPControlMode.Edit ;
               MyFormEdit.ItemContext.FormContext.SetFormMode(SPControlMode.Edit, true);

               MyFormEdit.Template = MyEditFormTemplate.Template;

 

 

你可能感兴趣的:(wss)