in

InfoPath Dev

Sharepoint binding problem

Last post 04-10-2008 11:59 AM by Clay Fox. 7 replies.
Page 1 of 1 (8 items)
Sort Posts: Previous Next
  • 04-10-2008 09:25 AM

    Sharepoint binding problem

    Hope this is the correct alias for InfoPath questions, apologies if not;

      

    I have a browser-enabled InfoPath form, with a repeating section, which contains a checkbox and textbox.

     

    The repeating section is bound to a sharepoint list, and the controls inside are bound to columns in that SP list.

     

    This works fine, however when I submit/save the form and then reopen, the checked status of the checkboxes is lost.

     

    I realise that this is because the binding is performed again and thus the checkbox values are overwritten, but I do not know how to work around this (apart from writing some OTT C#).

     Is it possible to stop InfoPath performing the bind?  

    Anyone got any ideas? Thanks in advance.

     

  • 04-10-2008 09:43 AM In reply to

    Re: Sharepoint binding problem

    It sounds like you are not storing the values in your main data source. The fields for the check boxes should be bound to fields in your main data source if you want them retained.

    Typically you would load the secondary data but then transfer it to your main data so that the responses can be stored in the form and be used later.

  • 04-10-2008 09:49 AM In reply to

    Re: Sharepoint binding problem

    How do I load the secondary data and then store it in my main data ?

  • 04-10-2008 10:06 AM In reply to

    Re: Sharepoint binding problem

    It really kind of depends on the data and the form flow.

    The simplest way is to use a set field action.

    The most complex is using code to copy a whole node.

    Give a bit more detail of what you are wanting or a screen shot.

  • 04-10-2008 10:18 AM In reply to

    Re: Sharepoint binding problem

    I have set up a data connection to a sharepoint list

    as i said, i have a repeating section (bound to the sp data connection) with a checkbox inside (bound to a field in the data connection)

    the reason i use a repeating section is there could be n number of records in the sp list and i need a checkbox for each one.

    i did not want to bind the checkbox to anything because I do not wish to pull any boolean value down from the sp list, but infopath does not allow me to leave the checkbox unbound within a bound repeating section.

     

    how does a field action work? is it compatible with the Forms Service?

  • 04-10-2008 11:11 AM In reply to

    Re: Sharepoint binding problem

    What does the check box do?

    When they select it?

    Often I would have a rule on the checkbox that when it is selected it use a setfield action to copy the cooresponding list data into your main form.

    Then this selection will be saved or could be accessed later.

    This is compatible with form services.

  • 04-10-2008 11:43 AM In reply to

    Re: Sharepoint binding problem

    ah yes, i understand what you mean by set field now.

    when the user checks/unchecks a checkbox the value of the textbox (which is also inside the repeating section and binds to another field in the sp list) is copied to a field in the main form.

    this means that if the user selects the checkboxes:

    england

    usa

    france

     

    the field in the main form is set to "england, usa, france"

     

    how would i go about creating local fields to store this data in?

     Manyb thanks,

     

     

  • 04-10-2008 11:59 AM In reply to

    Re: Sharepoint binding problem

    Just add a repeating group or fields, depending on your need, to your main data source. Right Click on the node.

Page 1 of 1 (8 items)
Copyright © 2003-2007 Qdabra Software. All rights reserved.
View our Terms of Use.