StrataFrame Forum

Browse Dialog - BusinessObjectToPopulate

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

By Paul Chase - 3/18/2008

Would it be possible to have a property on the browse dialog to only fill the BusinessObjectToPopulate with the selected row rather than all the rows that were returned in the initial search.
By Trent L. Taylor - 3/18/2008

We could, but you can do this yourself very easily by handling the BrowseDialogClosed event and stripping out the other records:

MyBo.Filter = "MyPkField = " & MyBo.MyPkField.ToString()
MyBo.CopyDataFrom(MyBo,ClearAndFillFromDefaultView)
By Paul Chase - 3/19/2008

Hi Trent,

I guess I should have mentioned that I am currently handling this in the browse dialog closed event, however I am also handling the current data table refilled event of the businessobjecttopopulate. Handling the closed event is after the fact so in effect the code I have in the current datatable refilled event fires 2 times.

By Trent L. Taylor - 3/19/2008

We can add this to the enhancement list. Smile
By Paul Chase - 3/19/2008

Thanks as always