<?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: add new record</title><link>https://www.infopathdev.com:443/forums/thread/13159.aspx</link><pubDate>Tue, 22 Feb 2005 23:04:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:13159</guid><dc:creator>Greg Collins</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/13159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=13159</wfw:commentRss><description>It is hard to follow what you are doing and what you want to do. Will you please be more specific?&lt;br /&gt;&lt;br /&gt;Greg Collins [InfoPath MVP]</description></item><item><title>add new record</title><link>https://www.infopathdev.com:443/forums/thread/12427.aspx</link><pubDate>Fri, 18 Feb 2005 16:38:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:12427</guid><dc:creator>sosan</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/12427.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=12427</wfw:commentRss><description>I'd like to add a new record with javascript&lt;br /&gt;i used this code&lt;br /&gt;&lt;br /&gt;XDocument.View.ExecuteAction("xCollection::insert", "new_rec"); &lt;br /&gt;&lt;br /&gt;it's ok but i have to show just the new record and hide the other ones.&lt;br /&gt;the action "New record" that infopath uses with the command button&lt;br /&gt;can do it.&lt;br /&gt;&lt;br /&gt;the problem it's this: when i clic on the button to add new record (the action) the view switch on the default one...I dont'want this! (??) so I want to add new record by code and Force the switchView to the current.&lt;br /&gt;&lt;br /&gt;Some help?</description></item></channel></rss>