BrowseDialog_Closed event, copy DataSource


Author
Message
Chan
Chan
Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)Advanced StrataFrame User (701 reputation)
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");

}


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