Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Default VTL formula for max Date is using wrong functions #859

Open
romaintailhurat opened this issue Jan 16, 2024 · 2 comments
Open

Default VTL formula for max Date is using wrong functions #859

romaintailhurat opened this issue Jan 16, 2024 · 2 comments

Comments

@romaintailhurat
Copy link
Collaborator

In Pogues, we can define a range for a Date type response domain. If the designer don't, some default values are used.

In this case, the DDI will be:

<r:Range>
     <r:MinimumValue included="true">1900-01-01</r:MinimumValue>
    <r:MaximumValue included="true">format-date(current-date(),'[Y0001]-[M01]-[D01]')</r:MaximumValue>
</r:Range>

Note that the VTL expression in the maximum value is using the functions format-date and current-date which are valid XPath functions but not valid VTL functions (there is a current_date in VTL but not a format_date).

Ideally, we should if possible replicate the existing mecanism (using the current date).

The target is probably to be able to give both dates and VTL formulas in the Pogues fields.

@romaintailhurat
Copy link
Collaborator Author

@AnneHuSKa to review the target objective for designers.

@romaintailhurat
Copy link
Collaborator Author

see also InseeFr/Bowie#40

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants