StrataFrame Forum

Performing Table Update

http://forum.strataframe.net/Topic5845.aspx

By Michael Reese - 1/15/2007

Are there any examples of how to update a column in another table utilizing BOs.

Example

Button_Click Sub

BOProducts.Qty =  BOProducts.Qty - BOOrderItem.Qty

End Sub

Thanks

By StrataFrame Team - 1/16/2007

If you're talking about updating the DataColumn within the DataTable of another business object, you can do so by obtaining an object reference to the other business object and using the .Item property with the column name.

If your asking about updating the field on the SQL Server, you can do so by overriding the OnAfterSave() method and if the save was successful, create a business object and update the table.