While closing PTASK I need to check some conditions

shivani_jamdade
Tera Contributor

I need some help to implement the functionality. Requirements are as follow: User should be able to close the PTASK only when in the Closure Tab Related Links it has two options Change Number: Change should be in reviewed or closed state and Training date: Date should be future date but till satisfying these conditions the PTASK should not get closed it should throw an error message on the PTASK form that the Date is still in further you cant close the PTASK and if Change is not in reviewed or closed state it should throw and error msg that tha Change is not yet closed.

 

Kindly help me for the same that how should I implement this functionality on the PTASK form on Close Button.

6 REPLIES 6

pavani_paluri
Giga Guru

Hi @shivani_jamdade ,

 

For this you have to implement a before business rule and condition should be state changes to Closed. In Advanced section, please Gliderecord Change and check its state and put condition for training date has to be greater than today.

 

Let me know if you want script for that.

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P

It will be good if you provide the script much needed and helpful for me 🙂

Thanks in advance!

 

shivani_jamdade
Tera Contributor

What about the Client Script for onSubmit? Will it be feasible??

Client script you have to write on submit, write glideajax and xmlwait you have to use. I would prefer business rule for it. 

 

Mark it helpful if this helps you to understand. Accept solution if this give you the answer you're looking for
Kind Regards,
Pavani P