<?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>General</title><link>https://www.infopathdev.com:443/forums/41.aspx</link><description>If you're not sure where to ask your question, ask it here. If necessary, our moderators will make sure it gets classified in the correct board.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Cannot be blank - Cannot be changed (grayed out)</title><link>https://www.infopathdev.com:443/forums/thread/69499.aspx</link><pubDate>Mon, 22 Aug 2011 14:27:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69499</guid><dc:creator>RonInOttawa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69499.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69499</wfw:commentRss><description>&lt;p&gt;Hi Jimmy;&lt;/p&gt;
&lt;p&gt;What I&amp;#39;ve noticed after replying to Patrick was that all the fields that are coming up as mandatory are all reference fields in my database main table. They all have a Allow NULL setting in the Main table but all have a Don&amp;#39;t Allow NULL in the Reference Tables.&lt;/p&gt;
&lt;p&gt;As for DataTypes, they are all Ints as they are references like I mentioned above.&lt;/p&gt;
&lt;p&gt;I was kinda hoping that InfoPath or the WebService woudn&amp;#39;t care about references as I&amp;#39;m passing an Int into an Int table field - It shouldn&amp;#39;t care that the associated table has Not Null settings.&lt;/p&gt;
&lt;p&gt;Cheers - Ron...&lt;/p&gt;</description></item><item><title>Re: Cannot be blank - Cannot be changed (grayed out)</title><link>https://www.infopathdev.com:443/forums/thread/69492.aspx</link><pubDate>Mon, 22 Aug 2011 13:08:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69492</guid><dc:creator>Jimmy</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69492.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69492</wfw:commentRss><description>&lt;p&gt;Hello RonInOttawa,&lt;/p&gt;
&lt;p&gt;What are the datatypes for the parameters that your webservice accepts?&amp;nbsp; String?&amp;nbsp; Int? DateTime?&amp;nbsp; Is there any common thread among the ones that are showing up as Cannot be blank?&amp;nbsp; That&amp;#39;s probably where this issue is coming from.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;What Patrick is suggesting is designing your own data source, and sending the entire XML of your data source to your webservice as a single parameter, then designing the web service to process this and interact with the database accordingly.&amp;nbsp; The &lt;a href="http://www.qdabra.com/en/products/DBXL.aspx"&gt;DBXL&lt;/a&gt; web service suite provides a generic way to do this.&lt;/p&gt;</description></item><item><title>Re: Cannot be blank - Cannot be changed (grayed out)</title><link>https://www.infopathdev.com:443/forums/thread/69489.aspx</link><pubDate>Mon, 22 Aug 2011 12:10:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69489</guid><dc:creator>RonInOttawa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69489.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69489</wfw:commentRss><description>&lt;p&gt;Thanks for getting back to me Patrick - Much appreciated.&lt;/p&gt;
&lt;p&gt;Your answer is confusing my InfoPath newbie mind even more though.&lt;/p&gt;
&lt;p&gt;Prior to creating a WebService to talk to my form, I created a form based on the Database template. When my data sources were setup directly to the database, none of my fields were &amp;quot;Cannot be blank&amp;quot; because the underlying database allows NULL values (See original post).&lt;/p&gt;
&lt;p&gt;I ran into some issues and I got multiple replies from experts, including this site, that I should be using a WebService. So I created one - Piece of cake.&lt;/p&gt;
&lt;p&gt;It&amp;#39;s only after I started using the WebService as my data source that the fields are now showing up as Cannot be blank. The underlying database hasn&amp;#39;t changed a bit. So how come the WebService is causing &lt;strong&gt;some&lt;/strong&gt; fields to allow blanks and others not?&lt;/p&gt;
&lt;p&gt;I appologize if I sound stupid, I&amp;#39;m usually not, but this does have me dumbfounded.&lt;/p&gt;
&lt;p&gt;Thanks again for the help and the time you are affording me to help me understand and resolve my issue.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;BTW - How can I create a form based on an XML schema when I have nothing to strat with?&lt;/p&gt;
&lt;p&gt;Cheers - Ron...&lt;/p&gt;</description></item><item><title>Re: Cannot be blank - Cannot be changed (grayed out)</title><link>https://www.infopathdev.com:443/forums/thread/69469.aspx</link><pubDate>Sun, 21 Aug 2011 19:20:42 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69469</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69469.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69469</wfw:commentRss><description>&lt;p&gt;Hi Ron,&lt;/p&gt;
&lt;p&gt;Your data source is bound to the SQL schema and that is why it&amp;#39;s grayed out. InfoPath assumes that you want to keep compatibility with the database since that&amp;#39;s how you created the form. You can change the data source&amp;#39;s editability but that could result in problems updating and submitting to SQL. &lt;/p&gt;
&lt;p&gt;Best practice is to create a form using XML schema - then you have full control - and use a Web service to submit to SQL and store an XML blob at the same time. The Web service creates a layer of indirection between your InfoPath form and the database and this means you can change one without breaking the submission process. If the mapping between XML and SQL is defined in data, it&amp;#39;s easy to update after-hours and reprocess the affected forms. Qdabra&amp;#39;s DBXL Web Service is an example of this loosely coupled SOA approach. &lt;/p&gt;
&lt;p&gt;So, I don&amp;#39;t recommend hacking the manifest.xsf to change the schema. I recommend recreating your form from XML schema for maximum flexibility. Another reason to use XML schema is that you get more data types and a richer form.&lt;/p&gt;</description></item><item><title>Cannot be blank - Cannot be changed (grayed out)</title><link>https://www.infopathdev.com:443/forums/thread/69448.aspx</link><pubDate>Fri, 19 Aug 2011 18:13:05 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:69448</guid><dc:creator>RonInOttawa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/69448.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=41&amp;PostID=69448</wfw:commentRss><description>&lt;p&gt;I have a bunch of fields (About 40%) in my main data source that have red asterisks next to them. When I open the properties, the Cannot be Blank attribute is checked but is grayed out. Is there a way to change this? The fields in the database do allow NULL values to be passed. I&amp;#39;m communicating with the SQL Server database via WebService, there&amp;#39;s nothing in the WebService that should be forcing these fields to not accept blank values.&lt;/p&gt;
&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>