Select the m:properties group: Figure 25 Leave the Value field as is, with the d:ProductID field selected: Figure 26 For the Display Name field, click and select the field: Select XPath d:ProductName Figure 27 Check the box only entries with unique display names’. ‘Show Your properties for your Product drop down will now look like: Figure 28 Task 4 Changing the OData URLs Dynamically – As in Exercise 2, we will be changing our URLs to return only the data we need. Since you have added REST data connections to your form to return data from the OData provider, you’ll find a new rule action of REST URL’ available to you: ‘Change Figure 29 Action rule that will you to dynamically change the URLs for the data connections to add filtering. Rules will be added to both the Category and the Product field. Add a rule to the Category field:
Select the m:properties group: Figure 25 Leave the Value field as is, with the d:ProductID field selected: Figure 26 For the Display Name field, click Select XPath and select the d:ProductName field: Figure 27 Check the box ‘Show only entries with unique display names’. Your properties for your Product drop down will now look like: Figure 28 Task 4 – Changing the OData URLs Dynamically As in Exercise 2, we will be changing our URLs to return only the data we need. Since you have added REST data connections to your form to return data from the OData provider, you’ll find a new rule action of ‘Change REST URL’ available to you: Figure 29 Action rule that will you to dynamically change the URLs for the data connections to add filtering. Rules will be added to both the Category and the Product field. Add a rule to the Category field:
InfoPath2010_And_ExternalData.docx