Required Fields Problem


Author
Message
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I've set some required fields on my BO. When I go to test it, I don't get any broken rule messages. It prompts me to save the bo. Here's what happens:



1. I click new

2. I click save (no data entered...should be some broken rules as many required fields aren't specified)

3. I get prompted to Save changes, no broken rules



In the BO, all I've done is setup my required fields. Is there something else I need to do to get these fields validated (or could I have turned something off)?
Replies
Greg McGuffey
Greg McGuffey
Strategic Support Team Member (4.8K reputation)
Group: Forum Members
Posts: 2K, Visits: 6.6K
I forgot to update this. It was my bad (doh). What has happening was that the BO was being saved by a navigation component (allowing the BO to be navigated using a listbox). That component was designed to handle the case when the user clicked on another item in the list without saving first. In that case it would prompt the use to save/undo the changes or cancel the navigation. However, I wasn't checking on the broken rules here, so I'd get the prompt. I added a check for broken rules and it is working. I'd coded the component a while ago and forgot that I had that logic...oops Blush
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
Hehe, no problem Smile  And I was on vacation, so you didn't get much help from me while I was gone...
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Greg McGuffey - 18 Years Ago
Trent L. Taylor - 18 Years Ago
Greg McGuffey - 18 Years Ago
                 Correction...
[quote]If you put a debug in the...
Greg McGuffey - 18 Years Ago
StrataFrame Team - 18 Years Ago
                         Actually, what happens is that I get prompted to save changes. If I...
Greg McGuffey - 18 Years Ago
                             So, when you call Save() on the BO, you get the message asking you if...
StrataFrame Team - 18 Years Ago
                                 [quote]So, when you call Save() on the BO, you get the message asking...
Greg McGuffey - 18 Years Ago
                                     When you put a break point in the BusinessRules checked, can you copy...
StrataFrame Team - 18 Years Ago
                                         Here is the stack trace:
...
Greg McGuffey - 18 Years Ago
                                             I forgot to update this. It was my bad (doh). What has happening was...
Greg McGuffey - 18 Years Ago
                                                 Hehe, no problem :) And I was on vacation, so you didn't get much help...
StrataFrame Team - 18 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search