By Scott - 12/4/2005
I have a rule that really should not stop the saving process, like using the addbrokenrule call would do. How would you suggest taking care of this type of issue? How about a warnings collection and an addwarning call?Just a thought.
|
By StrataFrame Team - 12/5/2005
Are you thinking of more functionality than just storing off the message? Like displaying a warning to the end user before they save?
|
By Scott - 12/5/2005
I guess there are a couple of way it could be done. I was thinking of something like the error messages with a "warning" or "information" icon that would provide the user with the message.I would think that simply showing these warning icons after the save would require the least amout of changes to the framework as aposed to messaging the user before the save takes place. Do you have a need for something like this in the applications that you are developing? Scott
|
By StrataFrame Team - 12/5/2005
We don't currently have a need for this in our applications. We've had the functionality in the past, but we never used it, and anything we didn't use, we pulled, because it was unneeded overhead. If you can find a convincing reason to add it, we might put it in Currently, if you wanted to implement some type of warning, you could add a collection to the business object you want the warnings on. Then, in the BeforeSaveEvent, you could show a popup to the end-user asking them if they are sure they want to save the record. As for using the ErrorProvider with a different icon, you could add that in the AfterSaveEvent handler.
Let me know what you think...
|
By Scott - 12/5/2005
Sounds good to me. That should be a good learning experience for a .Net novice like myself.
|
By Larry Caylor - 12/8/2005
I'd like to add my 2 cents to this topic. In the type of applications our organization (Social Services) develops, there is a definite need for warning messages that don't prevent an object from being saved. There are a number of data elements that we would like to capture for reporting purposes, but if the client refuses to provide that information, we are still required by law to provide the service. Using a warning message we can prompt the user to try to obtain the information, even though it's not 'required'. This has been an issue with our current framework, CSLA.
|
By Trent L. Taylor - 12/8/2005
We are now planning on implementing a warning option through the business objects when checking the Broken Rules. There will be an event that is raised and will contain all of the "Warnings." We will have an auto-show option or you will be able to manage them yourself. Instead of using an error provider like the broken rules implement, a window displaying all of the warnings will be presented to the user. Obviously you will be able to turn this off and display the warnings however you see fit. Since there is obviously a need for this type of interaction in the field we will definitely be adding this type of functionality. Thanks for your input and we will let you know when this new functionality is available. In fact, we are planning on using this functionality ourselves now when we checking drug indications on our medical application. Thanks again guys!
|
By StrataFrame Team - 12/9/2005
Well, I told someone to come up with a good reason to add warnings, and you did, so we're adding it in...
|
By Larry Caylor - 5/25/2006
Are warning messages still on the "To do" list?-Larry
|
By StrataFrame Team - 5/25/2006
Hehe, yes, they are, as a matter of fact. Might not make the release today or tomorrow, but they will be included with the next version that includes full, role-based security.
|
By Larry Caylor - 9/27/2006
Did this make it into v1.5? I can't find any reference to Warning Messages in the documentation.-Larry
|
By StrataFrame Team - 9/27/2006
No, the warning functionality did not make it into the 1.5 release.
|
By Chan - 10/15/2008
Hi,
Any update on this feature? I couldn't find it at 1.6.7 as well.
It is very useful feature for us. Please put it on higher priority if it is not implemented.
Thank you
|
By Trent L. Taylor - 10/16/2008
No, and at the present we are not sure if it will be added in the near term. We have taken a different approach in our medical software and after a lot of discussion and debate there are no consistent opinions on how this would be implemented on a global scale. It is not taken off of the table, but the issue comes down to at what point the record will be saved (if it will at all). For example, errors prevent a save, so this is easy. But what do warnings do? Ultimately there would have to be some events that manage this and options to determine how the behaviour would be. So until we revisit this and come up with an agreed way to manage this, it will not be implemented. But it is still on the table and will be implemented in some fashion at some point, but at present this is not implemented.
|