StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Browse Dialog - BusinessObjectToPopulateExpand / Collapse
Author
Message
Posted 03/18/2008 4:23:47 PM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 7:42:15 AM
Posts: 359, Visits: 2,323
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.
Post #14997
Posted 03/18/2008 4:29:51 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:52:53 AM
Posts: 4,586, Visits: 4,571
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)
Post #14998
Posted 03/19/2008 7:49:46 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 7:42:15 AM
Posts: 359, Visits: 2,323
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.

Post #15010
Posted 03/19/2008 9:45:21 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Today @ 4:52:53 AM
Posts: 4,586, Visits: 4,571
We can add this to the enhancement list.
Post #15019
Posted 03/19/2008 11:04:41 AM


StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: Today @ 7:42:15 AM
Posts: 359, Visits: 2,323
Thanks as always
Post #15031
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 8:20am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.063. 10 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.