Thank you for your reply Hilary... I am still struggling with this and I do not have any answers to this problem yet.
Here is more (important) info on this issue... I have 4 columns (Factory, Full Name, Address, Phone Number) I created in SharePoint List called “Contacts”.
In InfoPath I have “DVTShipTo” Field which is a Drop-Down List Box (part of the repeating table) and I have checked “Show only entries with unique display names”. List Box choices are set to “Get Choices from an external data source” and it is pointing to my SharePoint List called “Contacts”.
- Under Entries I have: /dfs:myFields/dfs:dataFields/dfs:Contacts
- Value: @Factory
- Display name: @Factory
I have another Drop-Down List Box (part of the repeating table) called “FullName”. List Box choices are also set to “Get Choices from an external data source” and it is pointing to my SharePoint List called “Contacts”.
- Under Entries I have: /dfs:myFields/dfs:dataFields/dfs:Contacts[current()/my:DVTShipTo = @Factory and @Factory = current()/my:DVTShipTo]
- Value:@Full_Name
- Display name: @Full_Name
Now… In repeating table section first row, let’s say if I select Factory 1 from the “DVTShipTo” drop-down field, this will filter items to show only Names associated with this factory under “FullName” drop-down field. Once I select the name, the "Address" field (part of the repeating table) will auto populate and this works perfectly each time. The problem is when I “insert New Item”/ row… When I pick the factory to filter the name, the address field now would be inaccurate. Here is the rule for that:
- Condition: None
- Rule type: Action
- Run these actions: Set a field’s value
- Field: Address
- Value: xdXDocument:GetDOM("Contacts")/dfs:myFields/dfs:dataFields/dfs:Contacts/@Address[xdXDocument:get-DOM()/my:myFields/my:Builds/my:DVTBuild/my:FullName = ../@Full_Name]
I hope there is simple solution for this problem and I am just missing some key points... Good thing to note, couple months ago I have started to work with SharePoint and this is my first project that involves Infopath