Hi,
I have a repeating table that is storing items in it as below.
<my:ToolsGrouping>
<my:ToolBuild>
<my:Sensor>
<my:Tool1>10</my:Tool1>
<my:Software1></my:Software1>
</my:Sensor>
<my:Sensor>
<my:Tool1>20</my:Tool1>
<my:Software1></my:Software1>
</my:Sensor><my:Sensor>
<my:Tool1>30</my:Tool1>
<my:Software1></my:Software1>
</my:Sensor>
</my:ToolBuild>
</my:ToolsGrouping>
I then have a rule for the repeating table to output to a field.
I am using a form library on an sharepoint site. the form is an infopath form, that has a separate datasource to another list on the sharepoint site. I then have a repeating table on the infopath form, that has a dropdown list that is populated by the sharepoint site datasource. Im not going to be able to write out the XML code for the sharepoint site, but lets say its a list with 2 columns, one labeled Tool and the 2nd labeled Request. The repeating table(this is the Tool1 in the datasource example above) on the infopath form is what was selected in the dropdown list that is populated with the Tool column from the sharepoint site list. What i would like, is to have an XPath expression that will output all Request row items that have the Tool row item the same as any of the reapeating table dropdown list (Tool1)
This is what i currently have as the rule:
<xsf:rule caption="Tool Specific Requirements" condition=". = xdXDocument:GetDOM("Tool Specific Requirements")/dfs:myFields/dfs:dataFields/dfs:Tool_Specific_Requirements/@Tool" isEnabled="yes">
<xsf:assignmentAction targetField="../../../../my:group4/my:Tool_Specific" expression="xdXDocument:GetDOM("Tool Specific Requirements")/dfs:myFields/dfs:dataFields/dfs:Tool_Specific_Requirements/@Requirements[../@Tool = current()]"></xsf:assignmentAction>
</xsf:rule>
unfortunately this Xpath rule, only outputs the Requirements that has Tool the same as the specific row in the repeating table. Each dropdownlist in each row in the repeating table has a different value (as you can see from the xml at the top). So what would the Xpath be to output all @Requirements that have @Tool the same as any of the "Tool1"
Thanks!!!