Hi,
I'm designing a DIP form for Word 2007, using Infopath 2007. I've got 2 drop-down list boxes (Category, Product) connected to Sharepoint list.
Properties of 'Category'
Entries: /dfs:myFields/dfs:dataFields/dfs:CategoryRelationList
Value: @ID
Display name: @Category
Properties of 'Product'
Entries: /dfs:myFields/dfs:dataFields/dfs:CategoryRelationList
Value: @ID
Display name: @Title
Main data source (DIP) Xpath:
/pr:properties/p:properties/documentManagement/ns2:Product
/pr:properties/p:properties/documentManagement/ns2:Category
The 'Product' box must display values depending on 'Category' (cascade dropdown).
If I use filter on 'Product' box /dfs:myFields/dfs:dataFields/dfs:CategoryRelationList[@Category = xdXDocument:get-DOM()/pr:properties/p:properties/documentManagement/ns2:Category]
the second box (Product) gets empty (no values) when I'm previewing form.
If I use Category (Value:@Category , Display name: @Category) and filter Product /dfs:myFields/dfs:dataFields/dfs:CategoryRelationList/@Title[../@Category = xdXDocument:get-DOM()/pr:properties/p:properties/documentManagement/ns2:Category] form displays correct, but wit error (Only positive integers allowed)
current()/xdXDocument:get-DOM()/pr:properties/p:properties/documentManagement/ns2:Category error:Node-test expected.
current()/ns2:Category error: "ns2:Category'" does not point to a valid location path of a field or group.
Please help me out,
Regards,