<?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: Change the title bar</title><link>https://www.infopathdev.com:443/forums/thread/22525.aspx</link><pubDate>Wed, 22 Aug 2007 06:48:47 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22525</guid><dc:creator>romaik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22525</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks for the precision.&lt;/p&gt;&lt;p&gt;It seams logic :)&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Change the title bar</title><link>https://www.infopathdev.com:443/forums/thread/22478.aspx</link><pubDate>Tue, 21 Aug 2007 18:32:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22478</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22478.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22478</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;XDocument actually exists onLoad, its&amp;nbsp; XDocument.View which does not exist onload. &lt;/p&gt;</description></item><item><title>Re: Change the title bar</title><link>https://www.infopathdev.com:443/forums/thread/22424.aspx</link><pubDate>Mon, 20 Aug 2007 08:46:40 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22424</guid><dc:creator>romaik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22424.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22424</wfw:commentRss><description>&lt;p&gt;I found the way :)&lt;/p&gt;&lt;p&gt;Xdocument does not exist yet in the OnLoad script which so XDocument.View.Window.Caption could not work.&lt;/p&gt;&lt;p&gt;The solution : I put&amp;nbsp; XDocument.View.Window.Caption into the onSwitchView script and it works perfectly&lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: Change the title bar</title><link>https://www.infopathdev.com:443/forums/thread/22422.aspx</link><pubDate>Mon, 20 Aug 2007 07:34:38 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22422</guid><dc:creator>romaik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22422.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22422</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi Agni&lt;/p&gt;&lt;p&gt;Thanks for the answer but I have difficulties making it work :s&lt;/p&gt;&lt;p&gt;I tried to put &lt;font size="2"&gt;&lt;i&gt;XDocument.View.Window.Caption&lt;/i&gt; into a OnClick event and it works.&lt;/font&gt;&lt;br /&gt;But it won&amp;#39;t work for the OnLoad event.&lt;/p&gt;&lt;p&gt;Here is the code.&lt;/p&gt;&lt;p&gt;function XDocument::OnLoad(eventObj)&lt;br /&gt;{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; thisXDocument.View.Window.Caption = &amp;quot;Hello !&amp;quot;;&lt;br /&gt;} &lt;/p&gt;&lt;p&gt;And it does not work. I also tried to put only&amp;nbsp; &lt;i&gt;XDocument.View.Window.Caption = &amp;quot;Hello !&amp;quot;&lt;/i&gt;&lt;br /&gt;Is there something else I need to know about the OnLoad event ?&amp;nbsp;&lt;/p&gt;&lt;p&gt;Regards,&lt;br /&gt;Romain&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Change the title bar</title><link>https://www.infopathdev.com:443/forums/thread/22397.aspx</link><pubDate>Fri, 17 Aug 2007 17:33:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22397</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22397.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22397</wfw:commentRss><description>&lt;font size="2"&gt;
&lt;p&gt;Hi Romain,&amp;nbsp;&lt;/p&gt;
&lt;p&gt;thisXDocument.View.Window.Caption = &lt;/font&gt;&lt;font color="#800000" size="2"&gt;&amp;quot;hello&amp;quot;&lt;/font&gt;&lt;font size="2"&gt;;&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&lt;font size="2"&gt;This above line will let you set the window caption. You can set the data from you secondary dom to the above property.&lt;/p&gt;&lt;/font&gt;</description></item><item><title>Change the title bar</title><link>https://www.infopathdev.com:443/forums/thread/22393.aspx</link><pubDate>Fri, 17 Aug 2007 15:27:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:22393</guid><dc:creator>romaik</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/22393.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=22393</wfw:commentRss><description>&lt;p&gt;Hi everyone.&lt;/p&gt;&lt;p&gt;I would like to know if it is possible to change the title bar of the form. Like when you open a XSN file, the title bar says : &amp;quot;Form1 - Microsoft Office InfoPath 2003&amp;quot;, and I would like to change &amp;quot;Form1&amp;quot; by data I will receive from a secondary data source (a external XML file basically).&lt;/p&gt;&lt;p&gt;In the same way, forms for this form are saved under a name that does mean anything to users but means a lot to me (the ID of the file une the DB).&lt;/p&gt;&lt;p&gt;Instead of having &amp;quot;1122334455.xml - Microsoft Office InfoPath 2003&amp;quot;, I would like to have a &amp;quot;personnal&amp;quot; title bar. The saving buttons are all disabled, so users can only save using my custom save button (which saves it under the right name).&lt;/p&gt;&lt;p&gt;I am using InfoPath 2003 SP2 and JScript.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Any help is welcome.&lt;/p&gt;&lt;p&gt;Regards,&lt;/p&gt;&lt;p&gt;Romain&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>