Question: Original BO and subsequent copies


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (3.5K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
We fixed the RegEx string that InstantASP was using so the quote and CodeSnippet will now work.




MessageBox.Show("Cool! This didn't used to work!")

Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Just got off the phone with an old friend who is also switching from Delphi to C# and I told him how much he will need SF for darabase development. He or his company might be joining us soon!

This is great news!

Ben Hayat
Ben Hayat
Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Thanks for the fix and I do see your point about the "Edit" feature which you loose trace of what has been said before. It's no big deal, worst come to worst, we can add another post to follow it up.



Just got off the phone with an old friend who is also switching from Delphi to C# and I told him how much he will need SF for darabase development. He or his company might be joining us soon!

..ßen
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
We fixed the RegEx string that InstantASP was using so the quote and CodeSnippet will now work.  As for the edit, we have intentionally not allowed this.  We have discussed allowing you to edit your own posts...but there are some concerns with this as well.  We would have to constantly monitor the edits as well as the new entries.  New entries are easy to monitor, but edits would require that we continually go back and make sure that previous posts are not being changed illegitamtely (going back and making changes that change the downstream posts and/or to post incorrect or invalid information)...which with 99% of the forum users this would not be an issue.  So this is not a new request...and we may turn it on, but for now it is off Ermm
Ben Hayat
Ben Hayat
Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Ben, while you're looking at the forum configuration, can you also check for "Edit" permission? There has been times, after posting, I wanted to go back to edit or add, but it won't let me, dueto permission.



Thanks!

..ßen
StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
I don't think it's a problem with the way you are quoting things... I think it's a problem with the way we might have permissions configured within the forum software.  I'll look into it and see.  You'll notice that the [codesnippet] also only works when Trent or I use it, but not anyone else...
Ben Hayat
Ben Hayat
Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Off Topic:



Trent, why is it, when I use the quote "{}" feature of this Forum, my quote does not appear like your above post. The first quote I did, I clicked on {} button, and you can see how it showed. Then when I was quoting Ben's, I clicked on "Quote" button, and you can see again how it appears.



I only see this problem with this software and nobody else.



Note: I tried it with IE, FF and Netscape!

..ßen
Trent Taylor
Trent Taylor
StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)StrataFrame Developer (10K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
I hope I can make it to training class!

I hope you can make it....it is definintely worth the time and money!!!!

Ben Hayat
Ben Hayat
Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)Advanced StrataFrame User (570 reputation)
Group: Forum Members
Posts: 374, Visits: 1.2K
Ben Chase (03/16/2007)
Any events that are shared by the form and by the business object (like BeforeSave) are called on the business object first. However, when you have a BO class defined in your application, the event is only raised on the instance, not within the class.



However, I think you might be talking about your event handlers for that event... if you handle the event in both your CustomersBO class and on the form where you dropped CustomersBO1, then most likely, the handler within the class will be invoked first. However, with event handlers, you can never be assured what order they will be invoked in (because a multicast delegate does not keep track of the order of the handlers), so, when you want to handle an event within the class that declares it, you will almost always want to override the On"EventName" method instead of actually "handling" the event. This way, you can control whether your code within the class will be executed before or after all of the handlers on the event. The actual call to the base method will raise the event, so you can place it at either the top, the bottom, or somewhere in the middle of your overriding method, and the event will be raised then. Like this:



Protected Overrides Sub OnBeforeSave(ByVal e As BeforeSaveUndoEventArgs)

'-- Call the base method to raise the event before the code in this method is executed

MyBase.OnBeforeSave(e) '-- The event will be raised here



'-- Do any extra code



End Sub



The OnEvent() definition is standard .NET coding practices, so just about any time you want to handle an event in a derived class you'll want to override that instead.




Ben, thank you for getting my point. What you described is what I was actually trying to discover/uncover for myself.

Great explanation. Thank you!



This product is deep... Got a lot to learn. I hope I can make it to training class!

..ßen
StrataFrame Team
S
StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)StrataFrame Developer (4.6K reputation)
Group: StrataFrame Developers
Posts: 3K, Visits: 2.5K
By the same token, since the OnEvent() methods are protected, you can call them (if you need to) to tell the base class to raise that event.
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