﻿<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>StrataFrame Forum » StrataFrame Application Framework - V1 » Business Objects and Data Access (How do I?)  » Why didn't this record save?</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Tue, 09 Jun 2026 16:18:32 GMT</lastBuildDate><ttl>20</ttl><item><title>Why didn't this record save?</title><link>http://forum.strataframe.net/FindPost7136.aspx</link><description>Hi,&lt;/P&gt;&lt;P&gt;Please refer to the attached screen shot. I have a BO with four columns each with a default value (refer code). When I click New in the Form I get a new record populated with the required default values however, when I click Save, I get an error saying there is no value provided for AGTActive.&lt;/P&gt;&lt;P&gt;While the above is my current concern I did notice earlier that "it seemed" as though the user has to change focus from field A to field B&amp;nbsp;before the contents of field A are acknowledged. I saw this when I didn't have a default value for AGTName and, when I created a new record, I keyed in value and clicked Save. This caused an error same as above but saying AGTName cannot be Null however the screen clearly showed what I just typed in.&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Tue, 27 Feb 2007 09:08:00 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: Why didn't this record save?</title><link>http://forum.strataframe.net/FindPost7194.aspx</link><description>Well, what would you like to debug? :D&lt;/P&gt;&lt;P&gt;If you want to debug your data sources, then in the AppMain.vb file, at the bottom of the SetDataSources() method, you can put this code for each of the data sources you have configured:&lt;/P&gt;&lt;P&gt;MicroFour.StrataFrame.Data.DataBasics.DataSources("").SetDebugOn("C:\Debug.html", True)&lt;/P&gt;&lt;P&gt;The string parameter is the path to the HTML output file for the data, and the True tells it to overwrite the file that is there each time you run the program.&amp;nbsp; The output file is a nice, HTML formatted debug file containing all sorts of information on each command that is executed.</description><pubDate>Tue, 27 Feb 2007 09:08:00 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Why didn't this record save?</title><link>http://forum.strataframe.net/FindPost7188.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;"Turn on debugging" Now that sounds like&amp;nbsp;a switch I would like to know how to turn on and off......&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Mon, 26 Feb 2007 16:16:57 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: Why didn't this record save?</title><link>http://forum.strataframe.net/FindPost7169.aspx</link><description>That's strange... if you can reproduce it again, then you can turn on debugging on the data source and see what the actual SQL code is that is being executed on the database.&amp;nbsp; But, then again, if it's working, then you really don't have a need to break it again just so you can reproduce it, huh ;)</description><pubDate>Mon, 26 Feb 2007 09:13:26 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Why didn't this record save?</title><link>http://forum.strataframe.net/FindPost7162.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;I'm just not sure what happened here but this now works. I have been messing around in the BO settings so I must have had 'something' incorrectly configured.&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Sun, 25 Feb 2007 21:13:46 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: Why didn't this record save?</title><link>http://forum.strataframe.net/FindPost7155.aspx</link><description>Hi Ben,&lt;/P&gt;&lt;P&gt;AGTActive column in the database does not permit Null values but the value being saved is True (notice the default code set up and the tick on the grid) so it isn't Null.&lt;/P&gt;&lt;P&gt;Cheers, Peter</description><pubDate>Fri, 23 Feb 2007 20:53:56 GMT</pubDate><dc:creator>Peter Jones</dc:creator></item><item><title>RE: Why didn't this record save?</title><link>http://forum.strataframe.net/FindPost7138.aspx</link><description>How is the AGTActive property configured?&amp;nbsp; Do you have a Null Value Option configured on the field within the business object?</description><pubDate>Fri, 23 Feb 2007 09:16:54 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item></channel></rss>