FieldPropertyChanged Event Handler


Author
Message
Leonard P.
Leonard P.
StrataFrame Novice (93 reputation)StrataFrame Novice (93 reputation)StrataFrame Novice (93 reputation)StrataFrame Novice (93 reputation)StrataFrame Novice (93 reputation)StrataFrame Novice (93 reputation)StrataFrame Novice (93 reputation)StrataFrame Novice (93 reputation)StrataFrame Novice (93 reputation)
Group: Awaiting Activation
Posts: 65, Visits: 306
Hi,



I want to be able to respond to FieldPropertyChanged event on the BO level (i.e. code lives inside BO class). I enabled BO Mapper to generate event on property change. But I don't see this event in the events list in BO's properties window. I can only see this event when I look at the BO properties on the form.

What's going on?



Thanks.
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 7K
I guess I don't understand what you mean.  The event is created after you rebuild the partial class and is defined within the designer file of the BO in which is was added.  If you want to handle the event within the BO itself, then add a handler in the constructor or where you need the BO to start handling the event:

this.FieldPropertyChanged +=new CustomersBOFieldPropertyChangedEventHandler(CustomersBO_FieldPropertyChanged);


Dustin Taylor
Dustin Taylor
StrataFrame Team Member (938 reputation)
Group: StrataFrame Users
Posts: 364, Visits: 771
1) Re-build the partial class for your BO within the BO Mapper

1) Build the project

3) Close your form

4) Re-open your form



Do the above and you should be able to see the events from the properties window.
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