StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Mechanism to update a single row in a BO?
Mechanism to update a single row in a BO?
Post Reply
Like
0
Mechanism to update a single row in a BO?
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Greg McGuffey
Greg McGuffey
posted 18 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 2K,
Visits: 6.6K
I find myself occasionally needing to update a single record within a BO, usually after messing with data via a sproc. Is there any way to update just one record (row) in the BO?
Reply
Like
0
Replies
StrataFrame Team
S
StrataFrame Team
posted 18 Years Ago
ANSWER
Post Details
Share Post
S
Group: StrataFrame Developers
Posts: 3K,
Visits: 2.5K
Aha, that makes more sense
You can use the AppendDataTable method and pass the query that will only retrieve that one record (we don't have an AppendByPrimaryKey). The other argument for the AppendDataTable() method, besides the DbCommand, is an enum that specifies whether to overwite duplicate records or keep duplicate records; you want to overwrite the record.
Reply
Like
0
Robin J Giltner
Robin J Giltner
posted 18 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 105,
Visits: 650
Does the AppendDataTable fire the CurrentDataTableRefilled Event ?
Thanks,
Robin Giltner
Reply
Like
0
Trent Taylor
Trent Taylor
posted 18 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame Developers
Posts: 6.6K,
Visits: 7K
Yes. When tables are merged it goes through the ChangeCurrentDataTable method which ultimately raises the CurrentDataTableRefilled event.
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Mechanism to update a single row in a BO?
Greg McGuffey
-
18 Years Ago
Well, if it's the only DataRow in the BO that is not Unchanged...
StrataFrame Team
-
18 Years Ago
Oops, you misunderstand. How do I refresh that single data row with...
Greg McGuffey
-
18 Years Ago
Aha, that makes more sense :) You can use the AppendDataTable method...
StrataFrame Team
-
18 Years Ago
Does the AppendDataTable fire the CurrentDataTableRefilled Event ?...
Robin J Giltner
-
18 Years Ago
Yes. When tables are merged it goes through the ChangeCurrentDataTable...
Trent L. Taylor
-
18 Years Ago
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search