Date with subitems

Discussions about CSEntry
Post Reply
jiofack
Posts: 14
Joined: May 17th, 2020, 9:45 pm

Date with subitems

Post by jiofack »

Hi to all,
I am having a date that I wanted to keep with the subitems. Unfortunalely when I leave the subitems in the dictionary, when reopening the case, it comes with a default value eventhough the subitems are filled.
My logic on the date field is
Preproc
if visualvalue($) = notappl then
$ = sysdate("YYYYMMDD");
endif;
The capture type is Date with the same format.
I was forced to drop the subitems and compute them when necessary.

What can I do to keep my subitems?
I am using CSPro 7.4 (When using 7.1, I never faced this issue)
josh
Posts: 2399
Joined: May 5th, 2014, 12:49 pm
Location: Washington DC

Re: Date with subitems

Post by josh »

Make sure that the date item has zero fill set to yes in the dictionary. Without zero fill then you could have a date like 2020 718 which is not a valid number even the three month/day/year subitems are all valid. With zero fill you would have 20200718 which is a valid number.
jiofack
Posts: 14
Joined: May 17th, 2020, 9:45 pm

Re: Date with subitems

Post by jiofack »

Thank you,

It was not having zerofill yes
Post Reply