I have written a declare expression to calculate age based on customer’s Date Of Birth. But I am getting some default value even without entering some DOB value. After entering the some value in DOB field then it returns correct value as expected. Kindly help me out.
My declare expression is @DateTime.DateTimeDifference(.DateOfBirth+“T000000.000 GMT”,@(Pega-RULES:DateTime).CurrentDateTime(),“Y”)
I tried it with “If and Otherwise” condition and It worked. At run time, when I change DOB value age value is not changing still it shows “zero” because I gave age value equals to “zero” in otherwise condition.
While storing into data base, value is getting stored as expected.
Try enabling the Legacy from actions and after changing it to legacy expression change the Calculate Value to whenever Input Changes Or whenEver used from Change tracking Tab .Hope this may help
@SrinidhiM I tried but it is not working and age field value is not updating in view at run time. Please look into below picture and let me know if there is any mistake.
The refresh section is similar to reload, it just refreshes the current state of the section which would help in displaying the latest data from clipboard.