BrowseDialog - Is it closed with cancelled ?


Author
Message
StrataFrame Team
S
StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)StrataFrame Developer (4.2K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
At the moment, there isn't a way... I will change it so that it provides a close reason, similar to the FormClosedEventArgs of the .NET framework, but with a different enum (because the basic CloseReason of .NET doesn't include DialogResult options). 

For the time being, will probably have to use a combination of the BrowseDialogClosed of the BrowseDialog and CurrentDataTableFilled of the business object along with one or two flags to determine whether the user canceled the browse.  The CurrentDataTableFilled event will only fire on the business object if the user selects a record from the browse, not if they cancel.

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 have code in BrowseDialog_Closed event to browse result (Maintenance form browsedialog) to another BO. How could I know if browse dialog is closed with cancel?



Thank you
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