How do you set a namespace for a secondary datasource using managed code?
D Dan from Badgerland Feb 3, 2005 #1 How do you set a namespace for a secondary datasource using managed code?
M Michelle Beall Feb 4, 2005 #2 //Get a reference to the Data Source (this is for a web service) IXMLDOMDocument3 wsDOM = (IXMLDOMDocument3)thisXDocument.DataObjects["SecondaryDataSourceName"].DOM; //Set the SelectionNamespaces so that you can find the correct field(s) wsDOM.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\"" + " xmlns:s0=\"http://tempuri.org/\"");
//Get a reference to the Data Source (this is for a web service) IXMLDOMDocument3 wsDOM = (IXMLDOMDocument3)thisXDocument.DataObjects["SecondaryDataSourceName"].DOM; //Set the SelectionNamespaces so that you can find the correct field(s) wsDOM.setProperty("SelectionNamespaces", "xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\"" + " xmlns:s0=\"http://tempuri.org/\"");