publisher/subscriber pattern


Author
Message
Larry Caylor
Larry Caylor
StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K
Have you considered implementing a publisher/subscriber pattern in the framework? For example, in your sample application I would like the Order Entry form to be able to subscribe to a customer change on the Customer Maintenance form that would allow the Order Entry form to update itself to reflect that change.
Replies
Larry Caylor
Larry Caylor
StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)StrataFrame VIP (1.9K reputation)
Group: Awaiting Activation
Posts: 592, Visits: 3.7K

Ben,

 

Hope you had a great time New Mexico. It’s been raining cats and dogs here in Santa Cruz, CA so I’ve had a lot of time to work with StrataFrame over the weekend. I’m using an AddHandler call and when I first tried to link up the events I had a “brain dead” moment and ended up adding an event handler that created a new instance of the OrderEntry form instead of handling the event on the existing object. Once I got that sorted I was able to accomplish what I wanted.

 

I also like applications that validate business rules on a character-by-character basis rather than waiting until you tab off a field. I was very happy to find out how easy that was to do by having the ObjectMapper generate events that I could trap in the form and call RulesCheck.

 

The more I work with SF the better I like it. However more detailed doc would be welcomed. A tutorial that builds a sample app would probably help people get their minds around this product. I’m used to working more in code and it’s taking me awhile to get used to working with properties windows. When trying to figure out how something works I have to remember to look at the properties rather than reading through the code, there just isn’t that much of it! Of course that’s the beauty of this framework.

 

-Larry

StrataFrame Team
S
StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)StrataFrame Developer (6.5K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
Larry,



I'm glad you figured out your event handler problem. As for tutorials, we're adding a section to the "Getting Started" in the documentation that is titled "Tutorials," so, they're on the way. As for the changed events, we put them in there for that exact purpose. Also, if you want complete bi-directional binding, you have to use the "Changed" events so that when you set the field property in code, the changed event gets raised and the data is pushed out to the control.
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