MSDN > 論壇首頁 > SharePoint - InfoPath Forms Services > how to add checkbox in repeating table?
發問發問
 

問題how to add checkbox in repeating table?

  • Friday, 3 July, 2009 3:43barrydd 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I need add checkbox or radio option control in repeating table, every row has one check box,I already added a field with checkbox type in repeating group, but if I binding the repeating table to a sql table, the checkbox disappear automatically, so how to implement this ?? binding a table in sql server onto repeating table and also reserve the check box in every row

所有回覆

  • Friday, 3 July, 2009 4:12Clayton Cobb 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    After making your data connection to the SQL table, just drag that repeating group from the secondary data source onto your canvas, and it will make its own repeating table with the appropriate controls.
    SharePoint Architect || My Blog
  • Friday, 3 July, 2009 4:29Shobhit Bhatnagar 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi, Can u explain wat exactly your requirement is...you can display checkboxes based on some choice field from Database, or u can create an independent check box on the infopath form too...??
  • Friday, 3 July, 2009 5:09barrydd 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I need to create an independent check box in every row of repeating table which binding to a sql table.
  • Friday, 3 July, 2009 5:29Clayton Cobb 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I need to create an independent check box in every row of repeating table which binding to a sql table.

    Did you try what I said?  You shouldn't have to create any checkboxes.  The data element from the SQL data connection should automatically create a checkbox unless the data type is not boolen, but you can still change the control to a checkbox but will have to translate the SQL data into some sort of Checked and Cleared values.
    SharePoint Architect || My Blog
  • Friday, 3 July, 2009 6:46barrydd 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    I need to create an independent check box in every row of repeating table which binding to a sql table.

    Did you try what I said?  You shouldn't have to create any checkboxes.  The data element from the SQL data connection should automatically create a checkbox unless the data type is not boolen, but you can still change the control to a checkbox but will have to translate the SQL data into some sort of Checked and Cleared values.
    SharePoint Architect || My Blog

    Yes, Cobb, I already try what you said, but actually I don't want to change any control type to checkbox which binded to any column in SQL table, I want to add a additional repeating checkbox in every row
  • Friday, 3 July, 2009 8:49Clayton Cobb 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    You have stated twice, "binding to a sql table."  This is the first time you clearly specified that your table ONLY is bound to the SQL table and that you want to add your own extra checkbox in the main data source.  It's not easy to combine both ine one repeating table.

    What makes you and some others address me as Cobb when that's my last name?  Is that customary in some cultures? 
    SharePoint Architect || My Blog
  • Friday, 3 July, 2009 9:21Shobhit Bhatnagar 使用者勳章使用者勳章使用者勳章使用者勳章使用者勳章
     
    Hi,

    When u add a checkbox control in your repeating table, then for each row that displayed on the  form when the data is loaded...the checkbox is repeated for each row....i dont knw whether this answers your question or not....but that is wat i think u want to knw...just add a checkbox to a column of a table n u r through....

    Regards
    Shobhit Bhatnagar