×

Notice

The forum is in read only mode.
×
Getting new Releases

To get notified on new releases you may follow us on twitter @expandframework or subscribe in our main RSS feed.

Topic-icon Validation Rule Warning support

More
7 years 2 months ago #1326 by microfox
Replied by microfox on topic Validation Rule Warning support
Supporting custom icons is a "nice to have", but not really necessary.
Having the same icons available as in MessageBox (Error, Warning, Info) is enough IMHO.

Robert
More
7 years 2 months ago #1327 by microfox
Replied by microfox on topic Validation Rule Warning support
>> will it let me save a record if all the broken validation rules are marked as warnings?
> no it will behave as normal validation rule.
Tolis, unfortunately this isn't the desired behaviour.
The icons must be shown immediately when the editors lose focus.
Showing warnings and infos in a dialog only after an end-user's action (like "Save") defeats the purpose of the warnings/infos.

Robert
  • Tolis
  • Tolis's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
7 years 2 months ago #1328 by Tolis
Replied by Tolis on topic Validation Rule Warning support

Supporting custom icons is a "nice to have", but not really necessary.
Having the same icons available as in MessageBox (Error, Warning, Info) is enough IMHO.


XAF is smart enoughto handle this with no extra coding.

>> will it let me save a record if all the broken validation rules are marked as warnings?
> no it will behave as normal validation rule.
Tolis, unfortunately this isn't the desired behaviour.
The icons must be shown immediately when the editors lose focus.
Showing warnings and infos in a dialog only after an end-user's action (like "Save") defeats the purpose of the warnings/infos.


This means that we have to evaluate all warning info rules on object change do you see any caveats on this?

To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
More
7 years 2 months ago #1333 by brekhof
Replied by brekhof on topic Validation Rule Warning support

This means that we have to evaluate all warning info rules on object change do you see any caveats on this?

Performance to name one, however I think that Robert is right. Maybe something like an 'OnEditorLeave'
event?

regards,
Martin
More
7 years 2 months ago #1338 by drew
Replied by drew on topic Validation Rule Warning support

microfox wrote: >> will it let me save a record if all the broken validation rules are marked as warnings?
> no it will behave as normal validation rule.
Tolis, unfortunately this isn't the desired behaviour.
The icons must be shown immediately when the editors lose focus.
Showing warnings and infos in a dialog only after an end-user's action (like "Save") defeats the purpose of the warnings/infos.

Robert

I bolded a more important issue: if all warning result in normal validation then this augmentation is not useful. It is a nice try, but it is not a warning system.
  • Tolis
  • Tolis's Avatar Topic Author
  • Offline
  • Administrator
  • Administrator
More
7 years 2 months ago - 7 years 2 months ago #1339 by Tolis
Replied by Tolis on topic Validation Rule Warning support
In v11.1.8.8 a RuleType enumeration introduced.
    public enum RuleType {
        Critical,
        [ImageName("Warning")]
        Warning,
        [ImageName("Information")]
        Information
    }







To enable evaluation of non critical the WarningController.ControlValueChanged context was introduced. I do not expect any serious performance hits because the validation filters out only related warning rules







To get notified on new releases follow us on twitter @expandframework or subscribe RSS feed. I am also available @tolisss . Also see How to debug eXpand
Attachments:
Last edit: 7 years 2 months ago by Tolis.
The following user(s) said Thank You: vimarx, microfox, KobusSmit, jesse
Moderators: expand
Time to create page: 0.319 seconds