Change the binding of a control InfoPath 2007

Author: mety Nagm Labels::



The controls in which users enter or select data on a form, including text boxes, check boxes, and list boxes, are bound (bind: To connect a control to a field or group in the data source so that data entered into the control is saved. When a control is unbound, it is not connected to a field or group, and so data entered into the control will not be saved.) to fields (field: An element or attribute in the data source that can contain data. If the field is an element, it can contain attribute fields. Fields store the data that is entered into controls.) and groups (group: An element in the data source that can contain fields and other groups. Controls that contain other controls, such as repeating tables and sections, are bound to groups.) in the form's data source. The data source, which is visually represented by folder (group) and document (field) icons in the Data Source task pane, stores the data associated with the form. If a control is not bound to a field or group in the data source, or if it is bound incorrectly, the information entered into the control cannot be saved.
Occasionally, you may find that you need to change the binding for a control on your form template. For example, if you copy a text box and paste it within the same view (view: A form-specific display setting that can be saved with a form template and applied to form data when the form is being filled out. Users can switch between views to choose the amount of data shown in the form.) of your form template, you see a message when you move your mouse over either of the text boxes indicating that they store duplicate data. This occurs because the text boxes are bound to the same field. In this case, you can rebind one of the text boxes to a different field in the data source.
Note Certain business logic features, including data validation (data validation: The process of testing the accuracy of data; a set of rules you can apply to a control to specify the type and range of data that users can enter.), conditional formatting (conditional formatting: The process of changing the appearance of a control, including its visibility and read-write state, based on values entered into the form.), and rules (rule: A condition or action, or a set of conditions or actions, that automatically performs tasks based on events and values in the form.), are based on fields and groups, not controls. For this reason, when you change the binding for a control, you may lose any data validation, conditional formatting, or rules that are associated with the original control.
  1. Right-click the control whose binding you want to change, and then click Change Binding on the shortcut menu.
  2. If your form template uses more than one data source, click the one that you want to use in the Data source list in the Control Binding dialog box.
  3. Do one of the following:
    • To create a new field or group to bind the control to, right-click the group to which you want to add the new field or group, click Add on the shortcut menu, enter the appropriate properties in the Add Field or Group dialog box, and then click OK.
    • To bind the control to an existing control, click the field or group that you want to bind the control to, and then click OK.

  4. To test the control and verify that the binding is correct, select the control on the form template. The icon that appears on the control indicates whether it is correctly bound to its field or group. HideBinding icons
    There are three possible binding icons.
    IconDescription
    Icon imageThe binding is correct.
    Icon imageThe control may not function as expected. To identify the potential problem, right-click the control, and then click More Details on the shortcut menu.
    Icon imageThe control will not function correctly. To identify the problem, right-click the control, and then click More Details on the shortcut menu.


0 comments |

Labels

Blog Archive

Powered by Blogger.

I made these pages for me and my friends to help solving the problem we face regarding Computer & internet, if anyone wants me to answer a question or find out about some information please send me email and I will try to reply.*P.S. some of the article I wrote and the other I found on the internet I posted them in sprit of learning and shearing, please forgive me if you found something you don’t want to be in my blog, email me and I will delete them. Thank you for your interest in my pages.امل نجم Amal Nagm

banner 1 banner 2