<?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>Qdabra qRules</title><link>https://www.infopathdev.com:443/forums/131.aspx</link><description>qRules adds support to your InfoPath  forms. With qRules, you can add features to your form that require code, but without having to write it. </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: QRules insert - inserting picture/File attachment field as mandatory</title><link>https://www.infopathdev.com:443/forums/thread/70884.aspx</link><pubDate>Wed, 05 Oct 2011 17:41:16 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70884</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70884.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70884</wfw:commentRss><description>&lt;p&gt;Hi, Catharine:&lt;/p&gt;
&lt;p&gt;I&amp;#39;d guess that it is the xsi:nil attribute causing the issue - Insert uses sampledata.xml, which, if I recall correctly, doesn&amp;#39;t have the nil attribute.&lt;/p&gt;
&lt;p&gt;The SetValue command can be used to add the nil attribute (looks like this was added in v2.4)&amp;nbsp;- will that work for your scenario? You&amp;#39;d run your insert, then SetValue for the attachment field with /nil=true.&lt;/p&gt;</description></item><item><title>QRules insert - inserting picture/File attachment field as mandatory</title><link>https://www.infopathdev.com:443/forums/thread/70874.aspx</link><pubDate>Wed, 05 Oct 2011 15:20:41 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:70874</guid><dc:creator>Catharine</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/70874.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=131&amp;PostID=70874</wfw:commentRss><description>&lt;p&gt;Hi&lt;/p&gt;
&lt;p&gt;I am using qrules 3.1.&lt;/p&gt;
&lt;p&gt;I am using the insert command, the child I am inserting has a number of fields, one of which is a picture/file attachment.&amp;nbsp; &lt;/p&gt;
&lt;p&gt;The insert works &amp;#39;correctly&amp;#39; BUT the file attachment is set as cannot be blank.&amp;nbsp; The attachment&amp;nbsp;needs to be&amp;nbsp;optional.&amp;nbsp; I am&amp;nbsp;using the insert command from code - by putting the correct&amp;nbsp;string into the QdabraRules secondary DB.&lt;/p&gt;
&lt;p&gt;Am I doing something wrong ?&amp;nbsp; Should insert be able to insert file attachment fields ?&amp;nbsp; Is it the &amp;quot;notnilable&amp;quot; ghost haunting me ?&lt;/p&gt;
&lt;p&gt;Any ideas ?&lt;/p&gt;
&lt;p&gt;Thank you&lt;/p&gt;
&lt;p&gt;Catharine&lt;/p&gt;</description></item></channel></rss>