Blaj Vlad (BlajV227)
.msg Systems

.msg Systems
BlajV227 Member since 2015 2 posts
.msg Systems
Posted: June 1, 2016
Last activity: June 6, 2016
Posted: 1 Jun 2016 5:11 EDT
Last activity: 6 Jun 2016 2:01 EDT

[BUG] Validation failed. Error not displayed where it should.

I have a Validation rule that i place on a flow action so that when i submit the Birthday (of type DATE) will be checked to be smaller than 18 years.

The validation rule can be found bellow:

@if(@(Pega-RULES:ExpressionEvaluators).round(@(Pega-RULES:DateTime).DateTimeDifference(.Birthday+"T000000.000 GMT",@(Pega-RULES:DateTime).CurrentDateTime(), "Y")) < 18,true,false)


The first time  I press Submit (and the Birthday property is not valid), the error message appears correctly, where it should, just under the Birthday picker.


If i leave everything unchanged and I press Submit( in our case the  Weiter" button which has Finish Assignment action) one more time, the error message disappears and appears in the top part of the section like in the image bellow.

If a third time i press submit without changing anything the error message will be displayed correctly like in the first case.

This behaviour is strange and I do not know if it is a Pega bug or some implementation bug. Also after the second submit pyWorkPage is not displayed with red( like it should because an error is present) and everything appears to be ok on the clipboard. Could anybody please explain this strange behaviour? In both cases the error message is the same.

Case Management
Moderation Team has archived post, This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Discussion, please write a new Discussion.