Manipulating the Business Object's DataTable


Author
Message
Keith Harvey
Keith Harvey
StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)StrataFrame Beginner (26 reputation)
Group: Forum Members
Posts: 18, Visits: 75
In my web application - as an alternate binding technique - I can easily access the SF business object's DataTable and manually bind my various UI controls to it.

Once the user edits the data in the UI and the page posts back - how can I get those changes back into the SF business object's DataTable in an efficient way?  Once the changes are back into the object's DataTable, will SF then do its magic when I call the Save() method?

Cheers!

Keith

Reply
StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
If you manually bind to a DataTable, I think the page will try to place the data table into the page's ViewState and recreate it when the page posts back.  So, when the page posts back, you might end up with the bound DataTable being a different instance than the DataTable within the BO that is saved off in a session somewhere.  You also might consider using an ObjectDataSource to bind the business object if you don't want to use the SF data binding.
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...





Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search