v
Not logged inv
SearchAsk a QuestionReport an IssueMake a SuggestionMy Questions and Issues
Issue Details
Find By ID

validating runtime members

Issue Details

Log in to Track Changes or Edit
Q234834
Question
Tolis Bekiaris [DX-Squad]
Yes
Processed
Duplicate (Issue S33602)
.NET (Frameworks)
eXpressApp Framework
9.2.6
Windows Server 2003
Microsoft Visual Studio 2008
10/29/2009 8:02:07 AM
-> Created by Tolis Bekiaris [DX-Squad] 10/22/2009 11:32:50 PM

Hi

why it is not supported?

<- Reviewed by DevExpress Team 10/23/2009 6:40:45 AM
<- Processed (Duplicate : S33602) by DevExpress Team 10/23/2009 6:53:36 AM

Hello Tolis,

When validation was initially implemented, validation of dynamic members was not supported. It's not supported in old XAF modules, such as ConditionalFormatting, etc. either.
See a similar issue in our Support Center for more technical details: The ConditionalEditorState module cannot be used with dynamic members.
However, we plan to improve the current state of affairs in the future: Validation - Use XAFTypesInfo instead of .NET reflection for all operations. Please track it. Once it is implemented, this scenario will be supported by the validation module.

Thanks,
Dennis

-> Reactivated by Tolis Bekiaris [DX-Squad] 10/29/2009 12:44:58 AM

Hi Dennis

I needed to support dynamic members on existent types as long with dynamics types for WorldCreator module. The dynamics part has finished and everything is working ok and i am one step from releasing the module to the public. So if you could change the setter of TargetPropertyName of RulePropertyValueProperties class from

[C#]

if(TargetType != null && TargetType.GetProperty(value) == null) {
                        throw new
Exception(string.Format("TargetType doesn't contain the '{0}' property", value));
                    }

to

[C#]

if(TargetType != null && TypeDescriptor.GetProperties(TargetType).Find(value, false) == null) {
                        throw new
Exception(string.Format("TargetType doesn't contain the '{0}' property", value));
                    }

dynamic members with validation will be a reallity for eXpand and everyone will be much happier.

ps: I have already made the change at my sources and everything works as expected .

<- Processed (Duplicate : S33602) by DevExpress Team 10/29/2009 8:02:07 AM

Hello Tolis,

Thank you for your suggestion. I've added a note about it to the S33602 suggestion. We will see whether we will change this code in the nearest future, or together with the complete implementation of the S33602 suggestion.

Thanks,
Anatol

Log in to Track Changes or Edit

Peer-to-Peer Discussion in DevExpress Forums

v
v
Search
Searching Tips