Question
Infosys
IN
Last activity: 5 May 2020 5:24 EDT
Based on past date disable buttons in section
Hi All,
I have a requirement where if i enter the past date which will be compare to current today date, some of the buttons will be disables.For example, the EnterDate is a text property format dd-mmm-yyyy(01-Mar-2020) and user enter some past date in that property which is to compare with the current date, some buttons will be disabled. Please anyone help me with this?
-
Like (0)
-
Share this page Facebook Twitter LinkedIn Email Copying... Copied!
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
On the buttons, use disable when rule to check if the current date is greater than the entered date and on change of the date property control, refresh the section.
Infosys
IN
Thanks for the reply.Can you tell me which condition should in when so that it will check the condition which i want?
Blue Rose Technologies
DE
Hi,
You can create a when rule as mentioned above. You can have condition in when rule as,
-
POORNIMA P P
Infosys
IN
Thanks for the reply. But what if the EnterDate is a text property which will have the value like 01-MAR-2020. will the when condition works or is there any alternate way?
Blue Rose Technologies
DE
If that is the case you might have to convert it to Date. You can try the approach mentioned in below link,
https://collaborate.pega.com/question/how-convert-ddmmyyyy-format-string-date
Updated: 14 Jun 2021 7:38 EDT
Pegasystems Inc.
IN
Please find the below screenshot for details.
-
POORNIMA P P
Infosys
IN
okay. But the Enter Date is a text property which is in the format of DD-MMM-YYYY like 01-MAR-2020..How we can do the when condition for this.
Pegasystems Inc.
US
There are a handful of ways to achieve this. This is probably the most straight forward. 1) On change refresh on the dates 2) Disable when condition on your buttons 3) Refer the when rule you've configured to check against your relevant dates.
-
POORNIMA P P
Infosys
IN
Hi, Thanks for the reply and i wanna how we can do it for a text property which has date in the format dd-mmm-yyyy (21-may-2020)..Is there any other way out for this?