StrataFrame Forum
Back
Login
Login
Home
»
StrataFrame Application Framework - V1
»
Business Objects and Data Access (How do I?)
»
Checking Conflicting Rules
Checking Conflicting Rules
Post Reply
Like
0
Checking Conflicting Rules
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Bill Cunnien
Bill Cunnien
posted 14 Years Ago
ANSWER
Topic Details
Share Topic
Group: Forum Members
Posts: 785,
Visits: 3.6K
I have a packing list detail business object that adds a broken rule whenever it detects that the detail has been included on an invoice. Users are not allowed to edit the packing list detail once it has been invoiced. Pretty normal business rule.
If a shipment is late, a reason is posted to the packing list detail. At times, the shipment has gone out and the items have been invoiced, but it really wasn't shipped late...someone forgot to change the ship date, or whatever. Now, a sales person reviews a late shipments report. He sees the invalid reasons and wants to modify the packing list detail to change the late reason back to 'None'. That seems reasonable.
Outside of simply stating that mistakes like this should be allowed to stand and learned from for the future...how do I allow a user to change one field on a BO when a constraint is in place to disallow changes? Is there something in the BO that tracks which fields have changed? If so, I could easily check to see if only the late reason is being changed, then allow the save. I am not seeing anything like that in the BO.
I hope I am making myself clear. I have only had two cups of coffee, so far.
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 14 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi Bill,
Looks like this is a very specific condition, so what I would do is this:
Add a commandbutton to call a child form dialog with the fields that needs to be change and save the BO normally, of course it will only save those fields changed in the child form.
With this approach you can even create a security permission for the button so only those with the required permission will be able to use it.
Edhy Rijo
Reply
Like
0
Bill Cunnien
Bill Cunnien
posted 14 Years Ago
ANSWER
Post Details
Share Post
Group: Forum Members
Posts: 785,
Visits: 3.6K
Tie it to an RBS permission key...not a bad idea. Thanks!!
Reply
Like
0
Edhy Rijo
E
Edhy Rijo
posted 14 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Bill Cunnien (06/10/2010)
Tie it to an RBS permission key...not a bad idea. Thanks!!
You are welcome!
Also keep in mind that you have to manually set the commandbuton.Enabled based on the check of the permission somewhere in your code logic. I use that in several of my projects and it works beautifully and very easy to implement with the childformdialog control.
Edhy Rijo
Reply
Like
0
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Post Reply
Like
0
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search