Trouble with save


Author
Message
Kevin Lingofelter
Kevin Lingofelter
StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)StrataFrame Novice (123 reputation)
Group: Forum Members
Posts: 77, Visits: 804
Hello,

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.

In the AfterRowUpdate event of the grid, I am calling BO.Save();

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:

"The CurrentRow could not be evaluated because the CurrentRowIndex is out of range.  Business object record count: 1.  CurrentRowIndex: -1."

Does this error give you any clues as what I'm missing?

Thanks!

Replies
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
You're not clogging anything.  That is what the forum is for.  If you start running into a problem again let me know.  I know that the Infragistics grid can be finicky at times when interacting with an ADO.NET data table. Smile
vblain
vblain
StrataFrame Beginner (12 reputation)StrataFrame Beginner (12 reputation)StrataFrame Beginner (12 reputation)StrataFrame Beginner (12 reputation)StrataFrame Beginner (12 reputation)StrataFrame Beginner (12 reputation)StrataFrame Beginner (12 reputation)StrataFrame Beginner (12 reputation)StrataFrame Beginner (12 reputation)
Group: Forum Members
Posts: 12, Visits: 31
hi,



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?
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
No.  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.  To do this you need to set the debug mode and file in the AppMain of the project.  It will look like this:

MicroFour.StrataFrame.Data.DataBasics.DataSources(0).SetDebugOn("c:\temp\mydebugfile.html", True)

Place the above code right after the ConnectionManager.SetConnections() in the SetDataSources() method in AppMain.  This will create an HTML file with every SELECT, INSERT, UPDATE, and DELETE call made through the framework during the session.  The file is updated before it is actually executed on the server, so even if it hangs, it should show up in the file.

The next question is what type of database are you using when this happens (also include what version)?  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.


GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Kevin Lingofelter - 20 Years Ago
Kevin Lingofelter - 20 Years Ago
Trent L. Taylor - 20 Years Ago
vblain - 20 Years Ago
Trent L. Taylor - 20 Years Ago
vblain - 20 Years Ago
StrataFrame Team - 20 Years Ago
Trent L. Taylor - 20 Years Ago
                     html>
body {margin: 13px 13px 13px 13px; background-color:...
vblain - 20 Years Ago
                         Hrm... what version do you have installed, Vince? 1.4.1 pre-release...
StrataFrame Team - 20 Years Ago
                             i'm using 1.4.1 currently, the form is just a basic maintenance form...
vblain - 20 Years Ago
                                 I'm checking right now, Vince to see if I can reproduce it.
StrataFrame Team - 20 Years Ago
                                     in the sampl project provided, the Customer Maintenance Form does the...
vblain - 20 Years Ago
                                         Does it only hang when you add a new record, or does it hang when you...
StrataFrame Team - 20 Years Ago
                                             I found it, Vince. I'm fixing it right now and I'll get you the...
StrataFrame Team - 20 Years Ago
                                                 you guys are awesome, can't get any better service then here
vblain - 20 Years Ago
                                                     OK, Vince, fixed the problem and re-created the install. The latest...
StrataFrame Team - 20 Years Ago
                                                         everything working 100%. Thank you again for your top of the line...
vblain - 20 Years Ago
                                                             That's what we're here for :)
StrataFrame Team - 20 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search