Hi,
I am using qrules 3.1 and infopath 2007.
I am struggling to insert a child of a child... I have read some of the other posts and have got a bit further - i.e. that I need to have the xpathsrc, but I now have the "failed to insert child" message.
The relevant portion of the data structure is attached.
I am wanting to add a further my:InterfacingSoftwareInformation node.- to a specific InterfacedApplication
The command I am using is...
Insert /parent=/my:myFields/my:Interfaces/my:InterfacedApplicationGroup/my:InterfacedApplicationList/my:InterfacedApplicationInformation[./my:InterfacedApplication = "0000404"]/my:InterfacingSoftwareInformationGroup /child=my:InterfacingSoftwareInformation /xpathsrc=/my:myFields/my:Interfaces/my:InterfacedApplicationGroup/my:InterfacedApplicationList/my:InterfacedApplicationInformation/my:InterfacingSoftwareInformationGroup/my:InterfacingSoftwareInformation
I am using the insert command from code - setting the value of the QdabraRules datasource Command field to be the command above. This has worked very well for other scenarios.
In the code I have checked that the /parent xpath returns a valid node.
I cannot see where I am going wrong. Could someone give me a pointer ?
Thank you
Catharine