Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remove required fields from the required collection
Message
From
11/08/2003 15:44:15
Jason Mesches
Ocean Systems Engineering Corporation
Carlsbad, California, United States
 
 
To
11/08/2003 12:35:35
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Miscellaneous
Thread ID:
00818983
Message ID:
00819118
Views:
16
Brian,

1. Considering your required list is dynamic, depending on user input, your approach seems sound.

2. All collections have a remove method. You can call it directly:
this.RequiredFields.Remove(columnName);
Assuming you're talking about a framework level mmBusinessRule.RemoveRequiredField() as companion to AddRequiredField(), you could add one to your project level subclass of mmBusinessRule for now. In the future, Kevin can decide if/when it will appear in a framework update.

---J


>The Form I’m working on is setup as a questionnaire. When a user answer a question Yes/No options will need to be filled in others will be remove.
>I’d Like to set the required fields at runtime by adding or removing fields from the required fields collection in the BizRules Object. My questions are.
>
>1 Does this sound like a good approach?
>
>2 I didn’t see a function to remove fields from the collection, can I just add one?
>Thanks
> Brian G
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform