﻿<?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?)  » Trouble with 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 04:36:49 GMT</lastBuildDate><ttl>20</ttl><item><title>Trouble with save</title><link>http://forum.strataframe.net/FindPost799.aspx</link><description>Hello,&lt;/P&gt;&lt;P&gt;I am beating my brain trying to figure out what I did wrong. I am using an infragistics grid. I am setting the isListSource property to true in the BO and binding the BO to the grid.&lt;/P&gt;&lt;P&gt;In the AfterRowUpdate event of the grid, I am calling BO.Save();&lt;/P&gt;&lt;P&gt;This works fine on another form. Records are added, deleted and modified just peachy, but on this one form, the save method gives me this error:&lt;/P&gt;&lt;P&gt;"The CurrentRow could not be evaluated because the CurrentRowIndex is out of range.&amp;nbsp; Business object record count: 1.&amp;nbsp; CurrentRowIndex: -1."&lt;/P&gt;&lt;P&gt;Does this error give you any clues as what I'm missing?&lt;/P&gt;&lt;P&gt;Thanks!</description><pubDate>Tue, 06 Jun 2006 21:27:41 GMT</pubDate><dc:creator>Kevin Lingofelter</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1439.aspx</link><description>That's what we're here for :)</description><pubDate>Tue, 06 Jun 2006 21:27:41 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1438.aspx</link><description>everything working 100%. Thank you again for your top of the line support.</description><pubDate>Tue, 06 Jun 2006 17:01:30 GMT</pubDate><dc:creator>vblain</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1437.aspx</link><description>OK, Vince, fixed the problem and re-created the install.&amp;nbsp; The latest version is available within the MyAccount area of the website and from &lt;A href="https://www.strataframe.net/downloads/StrataFrame.zip"&gt;https://www.strataframe.net/downloads/StrataFrame.zip&lt;/A&gt;.&amp;nbsp; &lt;/P&gt;&lt;P&gt;Basically, when the new PK was retrieved after an insert, the internal DataTable would raise its ListChanged event, and the business object would try to raise its property descriptor changed event (for 2-way binding) and the binding would try to refresh its value.&amp;nbsp; But, the binding resides on the main thread, and the main thread is blocked while the update threads push the data to SQL Server, so the whole thing froze. &lt;/P&gt;&lt;P&gt;Give that new install a shot :)</description><pubDate>Tue, 06 Jun 2006 15:45:32 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1436.aspx</link><description>you guys are awesome, can't get any better service then here</description><pubDate>Tue, 06 Jun 2006 15:42:53 GMT</pubDate><dc:creator>vblain</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1434.aspx</link><description>I found it, Vince.&amp;nbsp; I'm fixing it right now and I'll get you the install once I get it built.</description><pubDate>Tue, 06 Jun 2006 15:11:17 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1433.aspx</link><description>Does it only hang when you add a new record, or does it hang when you edit an existing record and save it?</description><pubDate>Tue, 06 Jun 2006 14:53:32 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1432.aspx</link><description>in the sampl project provided, the Customer Maintenance Form does the exact same thing, when saving it just hangs</description><pubDate>Tue, 06 Jun 2006 14:27:43 GMT</pubDate><dc:creator>vblain</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1431.aspx</link><description>I'm checking right now, Vince to see if I can reproduce it.</description><pubDate>Tue, 06 Jun 2006 14:20:10 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1430.aspx</link><description>i'm using 1.4.1 currently, the form is just a basic maintenance form no grid, i dropped SF textbox for each fields &lt;br&gt;
[img]http://www.discoversuccess.com/sf_maintenance.bmp[/img]</description><pubDate>Tue, 06 Jun 2006 14:14:38 GMT</pubDate><dc:creator>vblain</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1429.aspx</link><description>Hrm... what version do you have installed, Vince?&lt;/P&gt;&lt;P&gt;1.4.1 pre-release or 1.4?&lt;/P&gt;&lt;P&gt;There could be an issue with the ListChanged event firing during the save (which causes the app to lock because the main thread is sleeping)... Do you have the business object on a grid using the BusinessBindingSource?</description><pubDate>Tue, 06 Jun 2006 13:54:15 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1428.aspx</link><description>html&gt;&lt;head&gt;&lt;style&gt;&lt;br&gt;
body {margin: 13px 13px 13px 13px; background-color: #ffffff; font-family: Verdana, Arial, Sans-Serif; font-size: 8pt; color: #000000; background-color: #ffffff; } &lt;br&gt;
table {width: 100%; padding: 0px; border-collapse: collapse; font-family: Verdana, Arial, Sans-Serif; font-size: 8pt; color: #000000; background-color: #ffffff; margin-bottom: 15px; border: 1px solid black;} &lt;br&gt;
table tr td {padding: 2px; background-color: #ffffff; color: #000000; font-weight: normal; text-align: left; vertical-align: top; border-bottom: 1px solid #eeeeee; line-height: 150%;} &lt;br&gt;
td.TitleSpacer {font-weight: bold; color:#000000; background-color: #dddddd;} &lt;br&gt;
td.Title {font-weight: bold; color:#000000; background-color: #dddddd;} &lt;br&gt;
td.RowHeader {background-color: #eeeeee; color: #000000; font-weight: normal; text-align: right; vertical-align: top; width: 150px;} &lt;br&gt;
span.ParameterInfo {color: #777777;} &lt;br&gt;
&lt;/style&gt;&lt;/head&gt;&lt;body&gt;&lt;br&gt;
&lt;table cellspacing="0"&gt;&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;Command #:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
1&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;Timestamp:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
2006-06-06  11:44:20.453&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;br&gt;
&lt;td colspan='2' class='TitleSpacer'&gt;&lt;br&gt;
&lt;br&gt;
General Command Settings&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;Command Type:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
Text&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;Object Type:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
System.Data.SqlClient.SqlCommand&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;Connection String:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;br&gt;
&lt;td&gt;&lt;br&gt;
Data Source=SVRSQL1;Initial Catalog=DiscoverSuccess;User ID=**;Asynchronous Processing=True&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;Transaction:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
False&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;br&gt;
&lt;td colspan='2' class='Title'&gt;&lt;br&gt;
Command Settings&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;CommandText:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;br&gt;
&lt;td&gt;&lt;br&gt;
INSERT INTO [dbo].[Location] ([LocationName], [Address1], [Address2], [City], [State], [Zip], [Telephone]) VALUES (@LocationName, @Address1, @Address2, @City, @State, @Zip, @Telephone);&lt;br&gt;
SELECT [id] FROM [dbo].[Location] WHERE id = SCOPE_IDENTITY();&lt;br&gt;
&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;br&gt;
&lt;td colspan='2' class='Title'&gt;&lt;br&gt;
Command Parameters&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;@LocationName:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
'test' &lt;span class="ParameterInfo"&gt;[DbType: String | Size: 100 | Direction: Input | SourceColumn: LocationName | SourceVersion: Current]&lt;/span&gt;&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;@Address1:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
'test' &lt;span class="ParameterInfo"&gt;[DbType: String | Size: 100 | Direction: Input | SourceColumn: Address1 | SourceVersion: Current]&lt;/span&gt;&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;@Address2:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
'test' &lt;span class="ParameterInfo"&gt;[DbType: String | Size: 100 | Direction: Input | SourceColumn: Address2 | SourceVersion: Current]&lt;/span&gt;&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;@City:&lt;br&gt;
&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
'test' &lt;span class="ParameterInfo"&gt;[DbType: String | Size: 100 | Direction: Input | SourceColumn: City | SourceVersion: Current]&lt;/span&gt;&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;@State:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
'te' &lt;span class="ParameterInfo"&gt;[DbType: AnsiString | Size: 2 | Direction: Input | SourceColumn: State | SourceVersion: Current]&lt;/span&gt;&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;@Zip:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;br&gt;
&lt;td&gt;&lt;br&gt;
'12345-1234' &lt;span class="ParameterInfo"&gt;[DbType: AnsiString | Size: 10 | Direction: Input | SourceColumn: Zip | SourceVersion: Current]&lt;/span&gt;&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;tr&gt;&lt;td class='RowHeader'&gt;@Telephone:&lt;br&gt;
&lt;/td&gt;&lt;br&gt;
&lt;td&gt;&lt;br&gt;
'(123) 123-1234' &lt;span class="ParameterInfo"&gt;[DbType: AnsiString | Size: 14 | Direction: Input | SourceColumn: Telephone | SourceVersion: Current]&lt;/span&gt;&lt;br&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;br&gt;
&lt;br&gt;
&lt;/table&gt;&lt;br&gt;
&lt;br&gt;
well the telephone is being passed now, but it's still hanging, the masked textbox are the SF MaskedTextBox. it just seems that the business object is not executing the statement. But i can even step through once i click save the app become unresponsive.&lt;br&gt;</description><pubDate>Tue, 06 Jun 2006 13:50:55 GMT</pubDate><dc:creator>vblain</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1426.aspx</link><description>Vince,&lt;/P&gt;&lt;P&gt;Did you use an SF masked textbox for the telephone?&amp;nbsp; If you did, make sure the BindingField property is set.&amp;nbsp; I am sure that you already know this, but just in case, there are properties on a masked text box to determine whether or not you want to include the making characters in the save.&amp;nbsp; This isn't your problem, just thought I would metion it.&lt;/P&gt;&lt;P&gt;So check to make sure that you have the BindingField and BusinessObject properties set for the telephone.&amp;nbsp; If you don't see those properties, then it is not an SF control :).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Let me know.</description><pubDate>Tue, 06 Jun 2006 13:32:08 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1425.aspx</link><description>Check the BindingUpdateMode property on the MaskedTextBox for the phone number and make sure it is set to OnPropertyChanged and try again... we just use the .NET DataBindings collection on the control to move the data back and forth, so if the binding is configured properly, everything should work.&lt;/P&gt;&lt;P&gt;Also, if you step into debug, check the DataBindings collection on the masked text box and make sure its count is greater than 0.</description><pubDate>Tue, 06 Jun 2006 13:29:27 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1424.aspx</link><description>Command Settings&lt;br&gt;
CommandText: 	INSERT INTO [dbo].[Location] ([LocationName], [Address1], [Address2], [City], [State], [Zip], [Telephone]) VALUES (@LocationName, @Address1, @Address2, @City, @State, @Zip, @Telephone); SELECT [id] FROM [dbo].[Location] WHERE id = SCOPE_IDENTITY();&lt;br&gt;
Command Parameters&lt;br&gt;
@LocationName: 	'test' [DbType: String | Size: 100 | Direction: Input | SourceColumn: LocationName | SourceVersion: Current]&lt;br&gt;
@Address1: 	'test' [DbType: String | Size: 100 | Direction: Input | SourceColumn: Address1 | SourceVersion: Current]&lt;br&gt;
@Address2: 	'test' [DbType: String | Size: 100 | Direction: Input | SourceColumn: Address2 | SourceVersion: Current]&lt;br&gt;
@City: 	'test' [DbType: String | Size: 100 | Direction: Input | SourceColumn: City | SourceVersion: Current]&lt;br&gt;
@State: 	'te' [DbType: AnsiString | Size: 2 | Direction: Input | SourceColumn: State | SourceVersion: Current]&lt;br&gt;
@Zip: 	'12341-2345' [DbType: AnsiString | Size: 10 | Direction: Input | SourceColumn: Zip | SourceVersion: Current]&lt;br&gt;
@Telephone: 	'' [DbType: AnsiString | Size: 14 | Direction: Input | SourceColumn: Telephone | SourceVersion: Current]&lt;br&gt;
&lt;br&gt;
this is the argument that happens when i try to save, I'm usiing SQL 2000 with SP4 on Windows 2003 Server, the form is a basic SF Maintenance form. for the Zip and the telephone i'm using Mask Texboxes, each set for their respective Mask, the zip is sent to the BO but not the telephone number i entered (123)123-1234 as the phone number but the Statement above never received it, i verified that the business object is tied to the mask box and that the proper field is also set. Help.</description><pubDate>Tue, 06 Jun 2006 13:27:04 GMT</pubDate><dc:creator>vblain</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1420.aspx</link><description>No.&amp;nbsp; But the first thing that you need to do is place the application in debug mode and see what is being executed on the server.&amp;nbsp; To do this you need to set the debug mode and file in the AppMain of the project.&amp;nbsp; It will look like this:&lt;/P&gt;&lt;FONT size=2&gt;&lt;P&gt;MicroFour.StrataFrame.Data.DataBasics.DataSources(0).SetDebugOn(&lt;/FONT&gt;&lt;FONT color=#800000 size=2&gt;"c:\temp\mydebugfile.html"&lt;/FONT&gt;&lt;FONT size=2&gt;, &lt;/FONT&gt;&lt;FONT color=#0000ff size=2&gt;True&lt;/FONT&gt;&lt;FONT size=2&gt;)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;Place the above code right after the ConnectionManager.SetConnections() in the SetDataSources() method in AppMain.&amp;nbsp; This will create an HTML file with every SELECT, INSERT, UPDATE, and DELETE call made through the framework during the session.&amp;nbsp; The file is updated before it is actually executed on the server, so even if it hangs, it should show up in the file.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size=2&gt;The next question is what type of database are you using when this happens (also include what version)?&amp;nbsp; Run the app in debug mode first and see if it clues you in to what is going on then we can go from there.&lt;/P&gt;&lt;/FONT&gt;</description><pubDate>Tue, 06 Jun 2006 13:07:43 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost1419.aspx</link><description>hi,&lt;br&gt;
&lt;br&gt;
found this thread and i'm also having problems with save. I'm trying to add a new record everything seems to work ok, when i click new i get an empty form with a ID of -1 but when i click save nothing happens the form just hang with no error given. i thought i was doing something wrong so i tried the same step in the sample project and same thing. no error the form just hangs. Have you ever experienced something like this?</description><pubDate>Tue, 06 Jun 2006 12:49:45 GMT</pubDate><dc:creator>vblain</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost802.aspx</link><description>You're not clogging anything.&amp;nbsp; That is what&amp;nbsp;the forum is for.&amp;nbsp; If you start running into a problem again let me know.&amp;nbsp; I know that the Infragistics grid can be finicky at times when interacting with an ADO.NET data table. :)</description><pubDate>Thu, 13 Apr 2006 22:42:03 GMT</pubDate><dc:creator>Trent L. Taylor</dc:creator></item><item><title>RE: Trouble with save</title><link>http://forum.strataframe.net/FindPost801.aspx</link><description>well...not sure what the deal was. I deleted the grid and rebuilt the settings and now it's working. Sorry to clog the forums with stuff not SF related...:Whistling:</description><pubDate>Thu, 13 Apr 2006 17:56:22 GMT</pubDate><dc:creator>Kevin Lingofelter</dc:creator></item></channel></rss>