In a submission form, I have a date field with calendar popup. I want to add a field for period with the format YYYYMM and store it in the same table as the datasource for the submission form.
Does anyone have a snippet of code that can solve this? And in that case, where do I put it? (Header?, footer?, HTML Block?).
I know that this is a violation of the rules for normalization, but here's the reason why:
I want to search records by period in a report. I can use Date Rollup to group records by month or year, but I can't use it as a search criteria. Therefore, the only solution seems to be to store an extra field in the table. Since YYYYMM contains both month and year, this would be the preferred format.
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
Question
Parma2015
Hi!
In a submission form, I have a date field with calendar popup. I want to add a field for period with the format YYYYMM and store it in the same table as the datasource for the submission form.
Does anyone have a snippet of code that can solve this? And in that case, where do I put it? (Header?, footer?, HTML Block?).
I know that this is a violation of the rules for normalization, but here's the reason why:
I want to search records by period in a report. I can use Date Rollup to group records by month or year, but I can't use it as a search criteria. Therefore, the only solution seems to be to store an extra field in the table. Since YYYYMM contains both month and year, this would be the preferred format.
Link to comment
Share on other sites
4 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.