<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: setProperty() function</title><link>https://www.infopathdev.com:443/forums/thread/13167.aspx</link><pubDate>Wed, 09 Mar 2005 09:48:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13167</guid><dc:creator>Shanthi Reddy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13167.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13167</wfw:commentRss><description>Hello liuqian,&lt;br /&gt;  You need to cast the secondary data source dom as an IXMLDOMDocument2 before you setProperty on it. Your code would look something like this in VS2003&lt;br /&gt;domCustomersUSA = (IXMLDOMDocument2)thisXDocument.GetDOM("Customers (USA)");&lt;br /&gt;domCustomersUSA.setProperty("SelectionNamespaces",&lt;br /&gt;"xmlns:q=\"http://schemas.microsoft.com/office/infopath/2003/ado/queryFields\" xmlns:d=\"http://schemas.microsoft.com/office/infopath/2003/ado/dataFields\" xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\"");&lt;br /&gt;&lt;br /&gt;Shanthi</description></item><item><title>setProperty() function</title><link>https://www.infopathdev.com:443/forums/thread/12431.aspx</link><pubDate>Wed, 09 Mar 2005 09:29:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12431</guid><dc:creator>liuqian</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12431.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12431</wfw:commentRss><description>Hi,I have a problem.When i use vs2003 to develop Infopath with secondary data source.I found it didn't have setPropety function.But in javascript has this function.&lt;br /&gt;&lt;b&gt;example&lt;/b&gt;:XDocument.GetDOM("Customers (USA)").setProperty("SelectionNamespaces",&lt;br /&gt;   'xmlns:q="http://schemas.microsoft.com/office/infopath/2003/ado/queryFields" ' +&lt;br /&gt;   'xmlns:d="http://schemas.microsoft.com/office/infopath/2003/ado/dataFields" ' +&lt;br /&gt;   'xmlns:dfs="http://schemas.microsoft.com/office/infopath/2003/dataFormSolution"');&lt;br /&gt;Please everyone can tell me how to write in vs2003?thanks.&lt;br /&gt;</description></item></channel></rss>