Posted: 18 May 2016 12:15 EDT Last activity: 6 Jun 2018 14:23 EDT
I have a requirement where I need to display a Date field in Dropdown mode. However on load of the screen, Month and Day will remain blank but the year should get set as the current year. I have tried to use the Default value with the CurrentDateTime func
I have a requirement where I need to display a Date field in Dropdown mode. However on load of the screen, Month and Day will remain blank but the year should get set as the current year. I have tried to use the Default value with the CurrentDateTime function but it is displaying all i.e. Month Day and Year. I have tried to convert the current date time into BigDecimal and then get it converted to the Year. Used the following: @(Pega-RULES:DateTime).year(@(Pega-RULES:DateTime).dateTimeToBigDecimal(@(Pega-RULES:DateTime).CurrentDateTime(), DateTime, tools)). But not working.
Message was edited by: Marissa Rogers - added category, moved from Mesh Help
Edit posts to add this mod edit message: Note the bold font of the message
***Updated by moderator: Marissa to close post***
This post has been archived for educational purposes. Contents and links will no longer be updated. If you have the same/similar question, please write a new post.
It seems like is not possible through the OOTB control. We are trying to make the client understand if they can change the requirement. Since this is already in Prod environment, we cant take risk to change the entire implementation on the Dates.
Thank you for posting your query in the PSC. This looks like an inactive post and hence, we suggest you create a new post for your query. Click on the Write a Post button that’s available on the top right pane of this page. Once created, please reply back here with the URL of the new post.
We have also sent you a private message opening up a communication channel in case you have any further questions.