﻿<?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?)  » Manipulating the Business Object's DataTable</title><generator>InstantForum 2017-1 Final</generator><description>StrataFrame Forum</description><link>http://forum.strataframe.net/</link><webMaster>StrataFrame Forum</webMaster><lastBuildDate>Fri, 29 May 2026 14:42:33 GMT</lastBuildDate><ttl>20</ttl><item><title>Manipulating the Business Object's DataTable</title><link>http://forum.strataframe.net/FindPost10214.aspx</link><description>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.&lt;/P&gt;&lt;P&gt;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?&amp;nbsp; Once the changes are back into the object's DataTable, will SF then do its magic when I call the Save() method?&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;P&gt;Keith</description><pubDate>Thu, 12 Jul 2007 09:08:53 GMT</pubDate><dc:creator>Keith Harvey</dc:creator></item><item><title>RE: Manipulating the Business Object's DataTable</title><link>http://forum.strataframe.net/FindPost10227.aspx</link><description>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.&amp;nbsp; 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.&amp;nbsp; You also might consider using an ObjectDataSource to bind the business object if you don't want to use the SF data binding.</description><pubDate>Thu, 12 Jul 2007 09:08:53 GMT</pubDate><dc:creator>StrataFrame Team</dc:creator></item><item><title>RE: Manipulating the Business Object's DataTable</title><link>http://forum.strataframe.net/FindPost10221.aspx</link><description>Hmmm... I'm guessing that this would work. I know that the BO determines if it's dirty by looking at the underlying datatable and if any row is changed, it is dirty.  I also know that typically, the Save() updates the UI.  But I've not done any web stuff, so I don't know if the web version of the save is different.  I'm curious now too! :hehe:</description><pubDate>Thu, 12 Jul 2007 00:39:00 GMT</pubDate><dc:creator>Greg McGuffey</dc:creator></item><item><title>RE: Manipulating the Business Object's DataTable</title><link>http://forum.strataframe.net/FindPost10215.aspx</link><description>Good question. I was doing exactly the opposite today in a Winform, I didn't want the changes in the datatable to make it back to the BO so I used the datatable's copy() method to create a new unique instance of the datatable for each UI element that could then function independently.&lt;br&gt;
&lt;br&gt;
I had to go through that because changes to the BO's datatable always caused databound events to fire that I didn't want.&lt;br&gt;
&lt;br&gt;
I will be interested how this works through postback in a web app.&lt;br&gt;
&lt;br&gt;
&lt;br&gt;
&lt;br&gt;</description><pubDate>Wed, 11 Jul 2007 20:32:09 GMT</pubDate><dc:creator>Keith Chisarik</dc:creator></item></channel></rss>