StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
WinForms (How do I?)
»
BrowseDialog_Closed event, copy DataSource
BrowseDialog_Closed event, copy DataSource
Post Reply
Like
0
BrowseDialog_Closed event, copy DataSource
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Chan
Chan
posted 17 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 533,
Visits: 2K
Hi,
I need to provide browse dialog which its BO mapped to view that joint with three tables. In BrowseDialog_Closed event, I try to copy search result back to PrimaryBusinessObject, and seek to the selected record as code shown below. The datasource is copied, record located successfully, but the screen still show the first record.
Any ideas?
transfersBO.CopyDataFrom(v_PInvoiceTransfersBO, MicroFour.StrataFrame.Business.BusinessCloneDataType.ClearAndFillFromCompleteTable);
transfersBO.CurrentDataTable.AcceptChanges();
if (!transfersBO.SeekToPrimaryKey(v_PInvoiceTransfersBO.TransferID))
{
MessageBox.Show("No data");
}
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
BrowseDialog_Closed event, copy DataSource
Chan
-
17 Years Ago
Hello Chan, You'll want to use the [b]NavigateToPrimaryKey()[/b]...
Dustin Taylor
-
17 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