<?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>InfoPath closing without opening form - problem with vbscript</title><link>https://www.infopathdev.com:443/forums/thread/125570.aspx</link><pubDate>Mon, 23 Sep 2024 03:32:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125570</guid><dc:creator>thegoat77</dc:creator><slash:comments>1</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125570.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=125570</wfw:commentRss><description>I am in a team in a large organisation that supports a number of InfoPath forms. We are having a strange problem with one form in particular since a few weeks ago.

We have narrowed it down to the fact that a recent Microsoft Office update that our IT group rolled out, specifically version/update 2402. Basically those PC&amp;#39;s that don&amp;#39;t have the update can open this form ok, but for those that have the update installed, InfoPath will open briefly, but then close out before the form opens.

I admit I&amp;#39;m not an InfoPath expert, but I do know that form references a number of VB scripts. As such, we have narrowed down the issue to one line of code (in a large file of other functions). Specially, it seems be when it does this - &amp;quot;set gobjXDocument = window.external.window.XDocument&amp;quot;. The two lines that precede this are &amp;quot;window.returnValue = 1&amp;quot; and &amp;quot;set gobjXDocument = window.dialogArguments&amp;quot;

When the line of code I mentioned s commented out, the form opens, but when it&amp;#39;s not, we experience what I mentioned above where InfoPath will open, but then close without opening the form.

Could anyone assist?

Thanks in advance

</description></item><item><title>Two or more Domains in an Active Directory</title><link>https://www.infopathdev.com:443/forums/thread/125479.aspx</link><pubDate>Mon, 26 Feb 2024 01:22:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125479</guid><dc:creator>marieA</dc:creator><slash:comments>7</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125479.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=125479</wfw:commentRss><description>I have created a SharePoint 2013 Infopath form for Team Input.  The first entry is their Work Standard ID Number.  From that entry, I use a &amp;quot;GetUserProfileByName&amp;quot; data connection to the Soap Server.  I need the form to bring me back the name of the person who owns the Standard ID Number.  

This works using the following concatenation:  concat(&amp;quot;i:0#.w|east\&amp;quot;, Work Standard ID (field).  This brings me the person&amp;#39;s name who owns the Work Standard ID - until I reach a person who resides in a different domain such as &amp;quot;i:0#.w|west.  

Is there a way to string the concats to look in both domains, or &amp;quot;stack&amp;quot; them to check for both?  I need the form to bring back the name and right now it just errors out because it is only doing a concat on one of the domains.

Please assist!

Thank You!!</description></item><item><title>Get Attachment Name</title><link>https://www.infopathdev.com:443/forums/thread/53602.aspx</link><pubDate>Mon, 12 Apr 2010 20:32:54 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:53602</guid><dc:creator>Lawson</dc:creator><slash:comments>23</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/53602.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=53602</wfw:commentRss><description>&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;I have an IP 2003 form with C# code. The form has many attachment fields. I need to get the names of attachments and the document type from the attachment and place it in an output. &lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Does anybody know how to get the file name and document type from an attachment? &lt;/font&gt;&lt;/p&gt;
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;Example: document.doc&lt;/font&gt;&lt;/p&gt;&lt;font size="3" face="Calibri"&gt;&amp;nbsp;&lt;/font&gt;&lt;font size="3" face="Calibri"&gt;Thanks,&lt;/font&gt; 
&lt;p style="MARGIN:0in 0in 10pt;" class="MsoNormal"&gt;&lt;font size="3" face="Calibri"&gt;-Lawson&lt;/font&gt;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Delete rows when checkbox is false</title><link>https://www.infopathdev.com:443/forums/thread/125246.aspx</link><pubDate>Mon, 06 Mar 2023 14:44:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125246</guid><dc:creator>joubin</dc:creator><slash:comments>6</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125246.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=125246</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have a simple requirement, but cannot figure out the code:&lt;/p&gt;&lt;p&gt;having a repeating table with several columns and a &amp;#39;verified&amp;#39; checkbox. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;on button click, delete all rows of a repeating table where the checkbox is not checked, so leaving only the rows with checked boxes. &lt;br /&gt;&lt;/p&gt;</description></item><item><title>C# SQL Query with repeating table </title><link>https://www.infopathdev.com:443/forums/thread/125159.aspx</link><pubDate>Thu, 17 Nov 2022 04:35:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:125159</guid><dc:creator>faheem safi</dc:creator><slash:comments>9</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/125159.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=125159</wfw:commentRss><description> Hello Everyone, 


I have an Infopath 2013 form, which pulls some records  info from a sql servers.  I want  a manual query, I have a field - QuestionID  on each line of the repeating table, where user will enter a QuestionID. The search button will look up records in the SQL DB . The first line works perfectly. Problem happens when I add a new line - the query is stuck on the first search. I would like to requery the data for the new record. below is my code. I will really appreciate the help. Thanks

 public void CTRL5_5_Clicked(object sender, ClickedEventArgs e)
        {

            // create an xmlNamespaceManager
            XmlNamespaceManager nSpace = this.NamespaceManager;

            // create an XPathNavigator for the main data source
            XPathNavigator xMain = this.MainDataSource.CreateNavigator();

            //cast the SQL Secondary Data Connection to an AdoQueryConnection.
            AdoQueryConnection SQLConn = (AdoQueryConnection)this.DataConnections[&amp;quot;QuestionswithResponses&amp;quot;];

            string strSQL = SQLConn.Command;

            //Get the filter vaile from column in the form
            string strFilter = xMain.SelectSingleNode(&amp;quot;/my:myFields/my:group1/my:group2/my:QuestionID&amp;quot;, nSpace).Value;

            //Add filter value to SQL query


            SQLConn.Command = SQLConn.Command + &amp;quot;WHERE QuestionID = &amp;#39;&amp;quot; + strFilter + &amp;quot;&amp;#39;&amp;quot;;

            //Now excecute the connection
            SQLConn.Execute();
            //Reset the SQL query to Orignal
            SQLConn.Command = strSQL;

</description></item><item><title>How can I apply a rule to clear a field's value?  </title><link>https://www.infopathdev.com:443/forums/thread/90700.aspx</link><pubDate>Fri, 14 Jun 2013 16:25:24 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:90700</guid><dc:creator>Mary Ann</dc:creator><slash:comments>5</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/90700.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=90700</wfw:commentRss><description>&lt;p&gt;I need to delete the contents of a field when particular selections are made.&amp;nbsp; I was attempting to create a rule which lists the conditions then have the action be to set a field&amp;#39;s value.&amp;nbsp; I want the field to be blank and I can&amp;#39;t see how to do this.&amp;nbsp; &lt;/p&gt;</description></item><item><title>On Postback, My Custom Control is Effected in InfoPath Browser List Form</title><link>https://www.infopathdev.com:443/forums/thread/123097.aspx</link><pubDate>Thu, 11 Jun 2020 15:37:35 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:123097</guid><dc:creator>Michael71</dc:creator><slash:comments>4</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/123097.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=123097</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have created a custom control in JQuery, but when I use the People Picker the custom control become not rendered.&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Michael Williams&amp;nbsp;&lt;/p&gt;</description></item><item><title>How can I convert string to decimal (currency)?</title><link>https://www.infopathdev.com:443/forums/thread/91213.aspx</link><pubDate>Tue, 09 Jul 2013 13:48:49 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:91213</guid><dc:creator>Ramon84</dc:creator><slash:comments>10</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/91213.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=91213</wfw:commentRss><description>Hi, 

Help, please. 

I need to convert a string to decimal with currency format. 

How can I do that?

Thanks in advanced.
</description></item><item><title>Displaying many items on a calculated field</title><link>https://www.infopathdev.com:443/forums/thread/124257.aspx</link><pubDate>Tue, 13 Jul 2021 16:23:30 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:124257</guid><dc:creator>Rob2021</dc:creator><slash:comments>1</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/124257.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=124257</wfw:commentRss><description>The setup is as such. One main list, Then a second list with a look up column for the asset items that include, Asset tag, Serial number, model number and such. Then on infopath 2013, create a form on the main list. Then add the lookup column as a multi-selection type to only show the asset tag, Make sure to have two data sources for the lookup. One for the Asset Tags and one for the Items. So Data source with ID and Tag and the other named. Asset Items that will import serial numbers and models and such. I&amp;#39;m able to display one serial number at time, Based on the asset tag selected, But I need to be able to have to display more than one serial number if I choose more than one asset tag.</description></item><item><title>Using code to save locally with "domain" as trust level</title><link>https://www.infopathdev.com:443/forums/thread/123761.aspx</link><pubDate>Wed, 23 Dec 2020 10:29:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:123761</guid><dc:creator>steven</dc:creator><slash:comments>4</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/123761.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=123761</wfw:commentRss><description>&lt;p&gt; I am making a form that will be used by people on the exact same computer and then it will be saved locally. It is to store data for delivery guys, so they fill in some information on a form and then head out. Now at night, all these forms will be processed by another script (using Robotic Process Automation). &lt;/p&gt;


&lt;p&gt;So I needed to make a button that would save the form locally with a certain unique filename and would then close the form. This all works fine on my local machine, with a &amp;quot;full trust&amp;quot; security level and using the following code:&lt;/p&gt;



&lt;p&gt;     
&lt;pre class="tab"&gt;public void CTRL1_5_Clicked(object sender, ClickedEventArgs e)&lt;/pre&gt;
&lt;pre class="tab"&gt;        {&lt;/pre&gt;
&lt;pre class="tab"&gt;            string projectTitle = this.MainDataSource.CreateNavigator().SelectSingleNode(&amp;quot;/my:myFields/my:ID&amp;quot;, this.NamespaceManager).Value; if (projectTitle == null || projectTitle == &amp;quot;&amp;quot;)&lt;/pre&gt;
&lt;pre class="tab"&gt;            {&lt;/pre&gt;
&lt;pre class="tab"&gt;                projectTitle = &amp;quot;IncorrectIdentifier&amp;quot;;&lt;/pre&gt;
&lt;pre class="tab"&gt;            }&lt;/pre&gt;

&lt;pre class="tab"&gt;            string currentDirect = Directory.GetCurrentDirectory(); &lt;/pre&gt;

&lt;pre class="tab"&gt;            this.SaveAs(currentDirect + &amp;quot;/&amp;quot; + projectTitle + &amp;quot;.XML&amp;quot;);&lt;/pre&gt;

&lt;pre class="tab"&gt;            //the line below also closes the application. If one need to just close the form, use this.Close() instead.&lt;/pre&gt;
&lt;pre class="tab"&gt;            //System.Environment.Exit(0);  &lt;/pre&gt;

&lt;pre class="tab"&gt;        }  &lt;/pre&gt;


&lt;p&gt;Now the problem arises when I move this form into my work environment. By the system settings it will not allow a form with &amp;quot;Full trust&amp;quot;. So I thought to change the trust level to &amp;quot;domain&amp;quot;, but then it seems that all the &amp;quot;System.IO&amp;quot; calls (such as &amp;quot;Directory.GetCurrentDirectory()&amp;quot; or more importantly &amp;quot;this.SaveAs&amp;quot; and &amp;quot;System.Environment.Exit(0)&amp;quot; )  will not work.&lt;/p&gt;


&lt;p&gt;I do not think I can reach my system administrator to allow for full trust forms. So I really wonder whether it is possible to save a file within a domain trust setting. The file will be stored locally, in the same map as the form is openend, so the user account from which the form is accessed will have rights to read and write within the folder. But I still get the following error:&lt;/p&gt;


&lt;pre class="tab"&gt;    Request for the permission of type &amp;#39;System.Security.Permissions.FileIOPermission, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&amp;#39; failed.&lt;/pre&gt;
&lt;pre class="tab"&gt;       at System.Security.CodeAccessSecurityEngine.Check(Object demand, StackCrawlMark&amp;amp; stackMark, Boolean isPermSet)&lt;/pre&gt;
&lt;pre class="tab"&gt;       at System.Security.CodeAccessSecurityEngine.Check(CodeAccessPermission cap, StackCrawlMark&amp;amp; stackMark)&lt;/pre&gt;
&lt;pre class="tab"&gt;       at System.Security.CodeAccessPermission.Demand()&lt;/pre&gt;
&lt;pre class="tab"&gt;       at System.Security.Permissions.FileIOPermission.QuickDemand(FileIOPermissionAccess access, String fullPath, Boolean checkForDuplicates, Boolean needFullPath)&lt;/pre&gt;
&lt;pre class="tab"&gt;       at System.IO.Directory.InternalGetCurrentDirectory(Boolean checkHost)&lt;/pre&gt;
&lt;pre class="tab"&gt;       at System.IO.Directory.GetCurrentDirectory()&lt;/pre&gt;
&lt;pre class="tab"&gt;       at coded.FormCode.CTRL1_5_Clicked(Object sender, ClickedEventArgs e)&lt;/pre&gt;
&lt;pre class="tab"&gt;       at Microsoft.Office.InfoPath.Internal.ButtonEventHost.OnButtonClick(DocActionEvent pEvent)&lt;/pre&gt;
&lt;pre class="tab"&gt;       at Microsoft.Office.Interop.InfoPath.SemiTrust._ButtonEventSink_SinkHelper.OnClick(DocActionEvent pEvent)&lt;/pre&gt;


&lt;p&gt;This is pointed to the &amp;quot;GetCurrentDirectory&amp;quot; command, but if I change that it will point to the &amp;quot;SaveAs&amp;quot; command and if I change that it will point to the &amp;quot;Environment.Exit&amp;quot; command. And I basically need all three.&lt;/p&gt;

Any help would be much appreciated.</description></item><item><title>arrows up or down</title><link>https://www.infopathdev.com:443/forums/thread/123146.aspx</link><pubDate>Tue, 30 Jun 2020 14:45:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:123146</guid><dc:creator>Toni212</dc:creator><slash:comments>2</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/123146.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=123146</wfw:commentRss><description>I have a number field and if the number is greater than zero the form needs to show an up arrow.  If less than zero, a down arrow.  What is the best way to do this?</description></item><item><title>Boolean function with two expressions</title><link>https://www.infopathdev.com:443/forums/thread/122463.aspx</link><pubDate>Fri, 21 Feb 2020 16:27:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:122463</guid><dc:creator>RegionH</dc:creator><slash:comments>2</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/122463.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=122463</wfw:commentRss><description>Hi,

In a form we got a text field which should always contain 0 as value. Right now the value is based on an expression:

1. number(boolean(contains(../my:Title, &amp;quot;UDBUD AF&amp;quot;))) [THIS WORKS]

I want to combine this expression with another check which contains an AND function.

2. number(boolean([/my:F_x00e6_llesudbud = &amp;quot;Nej&amp;quot; AND /my:F_x00e6_llesudbud_x0020__x002d__ = &amp;quot;&amp;quot;]).

So if (1) AND (2) is true I get the value 2.

I can&amp;#39;t figure out how to combine the two expressions. Could someone help me?

Best regards
Morten</description></item><item><title>Encoding an attachment to Base64 with VBA</title><link>https://www.infopathdev.com:443/forums/thread/121593.aspx</link><pubDate>Thu, 26 Sep 2019 20:55:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121593</guid><dc:creator>tbaker818</dc:creator><slash:comments>3</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121593.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=121593</wfw:commentRss><description>I&amp;#39;ve been able to encode the files themselves, but the first portion of the attachment in Base64 appears to be specific to InfoPath. This is even documented in the URL below and I found some VB code, but I don&amp;#39;t have the background to understand it.  

I have an example below. I just need to figure out what to encode for the &amp;quot;unknown&amp;quot; section. If I can figure out what to encode.

I Used the decoder at https://www.browserling.com/tools/base64-decode to decode the &amp;quot;unknown&amp;quot; section below and it decodes to  &amp;quot;U&#x1;	&amp;quot;. 

If I can figure out what this is supposed to be, I think I&amp;#39;ll have everything I need.


[standard]                        [unknown]  [standard]   [filename]                        [standard]
x0lGQRQAAAABAAAAAAAA AFUBAAAJ   AAAA          dABlAHMAdAAuAHAAbgBn AAAA



https://blogs.msdn.microsoft.com/infopath/2004/03/18/infopath-file-attachment-control/</description></item><item><title>From code components - required on users' workstations?</title><link>https://www.infopathdev.com:443/forums/thread/121587.aspx</link><pubDate>Thu, 26 Sep 2019 15:13:00 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121587</guid><dc:creator>dc330</dc:creator><slash:comments>3</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121587.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=121587</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;So far I&amp;#39;ve been able to do everything I need with InfoPath without writing any code.&amp;nbsp; I would like to create a Save button that saves the form to a network drive.&amp;nbsp; From what I&amp;#39;ve found, it appears I need to write some code to do this.&lt;br /&gt;When I go to start editing code for my new button, I get the error below that I am missing programming components.&lt;/p&gt;&lt;p&gt;My question is; does everyone else who uses the form have to download and install the components (see listbelow): &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;Microsoft Visual Studio Tools for Applications 2012&lt;br /&gt;Microsoft .NET Framwork 3.5 &lt;/i&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</description></item><item><title>SOS: How to validate the attachment size of picture control</title><link>https://www.infopathdev.com:443/forums/thread/23016.aspx</link><pubDate>Wed, 12 Sep 2007 17:47:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:23016</guid><dc:creator>realminds</dc:creator><slash:comments>12</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/23016.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=23016</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Can anybody help&amp;nbsp;how to extract/find attached picture or file size of file or picture control&amp;nbsp;at design time or using&amp;nbsp;code behind (.Net or J/Vb script) at some event handler. Basically i have a form which is having many&amp;nbsp;file/picture attachment controls in different sections, But while submitting i want to make sure that attachment&amp;nbsp;size is limited to some KBs. Any help would be greatly appreciated.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Calculating Business Days Between Two Dates</title><link>https://www.infopathdev.com:443/forums/thread/121031.aspx</link><pubDate>Fri, 24 May 2019 20:15:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:121031</guid><dc:creator>mrosenstein</dc:creator><slash:comments>6</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/121031.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=121031</wfw:commentRss><description>I am attempting to follow the alecpojidaev instructions to calculate the amount of working days between two date pickers on my own form using this link: https://alecpojidaev.wordpress.com/2008/12/30/infopath-codeless-programming-walkthrough-2/ . However, after copying his rules directly from his form and running it on my own form, I continue to get errors. 

The error received when I choose a date on my form is:
An error occurred in the form&amp;#39;s rules or code. The number of rule actions or the number of calls to the OnAfterChange event for a single update in the data exceeded the maximum limit.

The rules or code may be causing an infinite loop. To prevent this, ensure that the rule action or event handler does not update the data which causes the same rule action or event handler to execute.

Is anyone aware of a quick fix to remedy these errors?</description></item><item><title>Adding new line to rich text box in c#</title><link>https://www.infopathdev.com:443/forums/thread/105406.aspx</link><pubDate>Fri, 05 Feb 2016 15:57:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:105406</guid><dc:creator>waelt</dc:creator><slash:comments>6</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/105406.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=105406</wfw:commentRss><description>I&amp;#39;m trying to add a new line in a RichTextBox using the following:
execSummary = execSummary.Replace(&amp;quot;;&amp;quot;, System.Environment.NewLine); //execSummary is a string
I&amp;#39;m trying to replace every semi-column with a new line when the user presses a button, but what happens is that the semi column will only disappear and have a white space instead. 
Is there anyway I can add a new line using c#, or can I do it without coding?
What is weird, when I show the modified text in a message box it is showing as it should be! But not when I check the rich text box .... o.O

Thank you</description></item><item><title>System cannot find the file specified. InfoPath form 2007 opened using Infopath designer 2013.</title><link>https://www.infopathdev.com:443/forums/thread/120887.aspx</link><pubDate>Tue, 30 Apr 2019 14:38:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120887</guid><dc:creator>MSiri</dc:creator><slash:comments>4</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120887.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=120887</wfw:commentRss><description>I am migrating InfoPath 2007 form to 2010 to 2013. The form is developed in InfoPath 2007 and has code behind. I opened the form using InfoPath Designer 2013,updated data connections. When I clicked on Code Editor, code did not open, so I removed the code and hit Code Editor. It created a new Project and I added References, Web References and code and built it. Form works fine..But If I close the InfoPath designer and reopen the form again using designer, when i clicked on Code Editor it says &amp;quot;system cannot find the file specified&amp;quot;. I am giving the right location, but it still says this. </description></item><item><title>Get current folder location</title><link>https://www.infopathdev.com:443/forums/thread/120180.aspx</link><pubDate>Thu, 13 Dec 2018 15:37:17 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120180</guid><dc:creator>joubin</dc:creator><slash:comments>2</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120180.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=120180</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I want to export a current view to PDF, and save it to the location where the user currently opens the form from:&lt;/p&gt;&lt;p&gt;&lt;font color="#0000ff" size="2"&gt;&lt;font color="#0000ff" size="2"&gt;this&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.CurrentView.Export(&lt;/font&gt;&lt;font color="#a31515" size="2"&gt;&lt;font color="#a31515" size="2"&gt;@&amp;quot;\&amp;quot;&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt; + fileName, &lt;/font&gt;&lt;font color="#2b91af" size="2"&gt;&lt;font color="#2b91af" size="2"&gt;ExportFormat&lt;/font&gt;&lt;/font&gt;&lt;font size="2"&gt;.Pdf);&lt;/font&gt;&lt;/p&gt;&lt;p&gt;unfortunately it does not work, any ideas?&amp;nbsp;&lt;/p&gt;</description></item><item><title>Validation formula error</title><link>https://www.infopathdev.com:443/forums/thread/120547.aspx</link><pubDate>Thu, 07 Mar 2019 20:51:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120547</guid><dc:creator>Gabrielle Souza</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120547.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=120547</wfw:commentRss><description>Hi everybody,

I&amp;#39;m newbie in Sharepoint Development and customizations, and I need some help from you guys. If you, please, could help me I&amp;#39;ll be so thankful!

My client asked me to add a column validation on his sharepoint online list. The validation is when the column RAG Status is not equal to Green, the column Back To Green must have a value.

I searched on many sites and, in meu lab this formula worked so well. When I tried on my client environment, I got the error: &amp;quot;Sometinhg went wrong...&amp;quot;

Here&amp;#39;s the formula:
=SE([RAG Status]&amp;lt;&amp;gt;&amp;quot;Green&amp;quot;;SE([Back To Green]=&amp;quot;&amp;quot;;FALSO;VERDADEIRO);VERDADEIRO) or
=IF([RAG Status] &amp;lt;&amp;gt; &amp;quot;Green&amp;quot;;IF([Back to Green]=&amp;quot;&amp;quot;;FALSE;TRUE);TRUE)</description></item><item><title>Open Email </title><link>https://www.infopathdev.com:443/forums/thread/120089.aspx</link><pubDate>Wed, 21 Nov 2018 14:59:55 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:120089</guid><dc:creator>Drscott21</dc:creator><slash:comments>7</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/120089.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=120089</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am trying to find out if there is a way to set a rule in InfoPath 2013 to open Outlook but not submit the form. Basically I need to have a rule on a button so that when clicked it will open an Outlook email that I can send a custom message in. Can anyone help?&lt;/p&gt;</description></item><item><title>Run Sub after form closes</title><link>https://www.infopathdev.com:443/forums/thread/119883.aspx</link><pubDate>Mon, 24 Sep 2018 20:20:50 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119883</guid><dc:creator>gtripodi</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119883.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=119883</wfw:commentRss><description>I am trying to run code that will delete InfoPath cache (%LOCALAPPDATA%\Microsoft\InfoPath) after closing the form. If it&amp;#39;s possible, I imagine it will be by way of hacking some kind of WrokFlow procedure.</description></item><item><title>'New Record' in C#</title><link>https://www.infopathdev.com:443/forums/thread/63316.aspx</link><pubDate>Tue, 18 Jan 2011 19:32:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:63316</guid><dc:creator>Drunk Goldfish</dc:creator><slash:comments>3</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/63316.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=63316</wfw:commentRss><description>&lt;p&gt;Hi,&lt;/p&gt;&lt;p&gt;I&amp;#39;ve been scouring the internet for the latter half of the day and trying various things but I can&amp;#39;t seem to find the solution to my problem.&amp;nbsp; I&amp;#39;ve read many a post asking a similar question but unfortunately most went unanswered and those that were answered - didn&amp;#39;t help.&lt;/p&gt;&lt;p&gt;My question is basically:&amp;nbsp; &lt;b&gt;What does the button action &amp;#39;New Record&amp;#39; &lt;u&gt;actually&lt;/u&gt;&lt;i&gt; &lt;/i&gt;do in terms of coding (i.e. underlying xml document, etc)?&amp;nbsp; As a follow up to that question - how can you recreate the &amp;#39;New Record&amp;#39; action programmatically in C#?&lt;/b&gt;&lt;/p&gt;&lt;p&gt;The basis of my problem is that I have an InfoPath 2007/2010 form that submits to an SQL table.&amp;nbsp; After the form is submitted, it needs to be cleared, ready for more data entry and submission (rinse and repeat as many times as required).&amp;nbsp; I don&amp;#39;t want the user to have to click a &amp;#39;Submit&amp;#39; button and then a &amp;#39;New Record&amp;#39; button - I figure that it should be doable in C#.&amp;nbsp; There are other reasons why I need to recreate the &amp;#39;New Record&amp;#39; functionality too but &amp;quot;the why&amp;quot; is not important so I&amp;#39;ll focus on the scenario I&amp;#39;ve just defined.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Two of the main suggestions that I&amp;#39;ve come across are summarised below with the reason why they don&amp;#39;t help:&lt;/p&gt;&lt;ol&gt;&lt;li&gt;After the form has submitted, query the database with an incorrect ID (i.e. -1) so that no data is returned.&amp;nbsp; Although this clears the form, it also makes it read only so it&amp;#39;s useless in the context of submitting the form again.&lt;/li&gt;&lt;li&gt;Create a load event that records the initial OuterXml as a private string value and then simply replace the OuterXml with the private string value when you need to create a new record (i.e. after submission).&amp;nbsp; This seems to work but on inspection of the SQL table I realised that every time the OuterXml is replaced and a submission is made, the previous submission is deleted/overwritten.&amp;nbsp; So if you submit 10 forms without closing the form itself down, the only submission that would remain at the end would be the last.&amp;nbsp; It&amp;#39;s more of a delete than an overwrite as the SQL key still increments by one each submission rather than just overwriting a particular row.&lt;/li&gt;&lt;/ol&gt;&lt;p&gt;I think that InfoPath points to a row in the database and even if you change various properties such as the OuterXml (or set all elements and attributes to zero, etc), it still remains pointing to the same row.&amp;nbsp; The only way it seems to move to a new row is if you add a &amp;#39;New Record&amp;#39; button to the form and click that.&amp;nbsp; &lt;/p&gt;&lt;p&gt;So in summary, I need to recreate what &amp;#39;New Record&amp;#39; does without having to dedicate a button/mouse click to it.&amp;nbsp; Any ideas? &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Dynamically enable/disable "changed" Event handlers?</title><link>https://www.infopathdev.com:443/forums/thread/107802.aspx</link><pubDate>Mon, 29 Aug 2016 20:09:48 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:107802</guid><dc:creator>meissen</dc:creator><slash:comments>3</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/107802.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=107802</wfw:commentRss><description>Does anyone know if there&amp;#39;s a way to programmatically enable/disable &amp;quot;Changed&amp;quot; event handlers in VB? I have a form with 11 repeating sections that are built out using VB loops. Each time a row is added, my &amp;quot;Changed&amp;quot; event handlers get triggered. Although the first line of the &amp;quot;Changed&amp;quot; event sub is an &amp;quot;if not (flag) then return&amp;quot; which stops the Changed event at the first line of the sub, it still slows down my code execution. With the event handlers enabled I&amp;#39;m averaging ~142 seconds to execute my loops. With the event handlers disabled, I&amp;#39;m averaging 80 seconds. Big difference when you&amp;#39;re waiting for the form to build out and be usable.&lt;br /&gt;&lt;br /&gt;
I have already tried moving &amp;quot;AddHandler&amp;quot; and &amp;quot;RemoveHandler&amp;quot; outside of the Startup method and received error messages for such. Was wondering if anyone else knew of some tricks to stop these change events from triggering?</description></item><item><title>Calling a https webservice from code in a InfoPath Web Form (SP2013)</title><link>https://www.infopathdev.com:443/forums/thread/119766.aspx</link><pubDate>Fri, 07 Sep 2018 09:48:15 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:119766</guid><dc:creator>Pascal van der Heiden</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/119766.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=119766</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hi,&lt;/p&gt;&lt;p&gt;I&amp;#39;ve wrote some c# code to do a https webrequest to an external webservice from my InfoPath form. Unfortunately the webservice could not be configured via the standard data connections. Because the external webservice only permits https request, an SSL certificate needs to be present in the store. When I run the InfoPath form in Filler mode, it will find the certificate in the store on my PC. So that works. But from SharePoint it doesn&amp;#39;t, because it can&amp;#39;t find the certificate. The error message in the applcation log is pretty clear about that. &lt;/p&gt;&lt;p&gt;My question? Where do I install the certifcate, so it will run in InfoPath Services?&lt;/p&gt;&lt;p&gt;I&amp;#39;ve installed it on the SharePoint Server, but no luck there.&lt;/p&gt;&lt;p&gt;Thanks for helping.&lt;/p&gt;&lt;p&gt;Cheers,&lt;/p&gt;&lt;p&gt;Pascal&amp;nbsp; &lt;br /&gt;&lt;/p&gt;</description></item></channel></rss>