If click on the cancel button then It should be auto cancel the ritm on portal

Rajankumar
Giga Expert

Hi Team,

Good Morning!

If click on the cancel button, then It should be auto cancel the ritm on portal, below is screenshot,

I have defined this code on widget related to cancel button.

<button ng-if="(data.showState == 1 && data.showApp == 'true') || (data.showApp == 'false')" type="button" class="btn btn-success" aria-label="Cancel" ng-click="cancelAction()">Cancel</button>

 

Rajankumar_0-1718346041005.png

 

 

3 REPLIES 3

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Rajankumar 

 

Greetings!!

 

I am not sure , will this work or not, bcz RITM is not a single record. In backend, it has linked with REQ and Task and also the whole process drive through Workflow/flow. So we need to build logic in backend , which

- Cancel or move all requested Approvals in cancelled / No Longer Required

- Close the all in progress task as closed incomplete which will close the RITM and REQ.

 

The process looks easy but need a good efforts.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************

Rajankumar
Giga Expert

Can anyone please help 

Hi @Rajankumar 

 

Sorry mate, I am not a pro/ coder so cant give you the script. But please think, if you build this , it will be technical debt on system.

*************************************************************************************************************
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.

Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]

****************************************************************************************************************