Risk Assessment to be made mandatory before requesting for approva;l
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 07:02 AM
Hi all,
So, i am looking to make the risk assessment mandatory before requesting for approval?
What is the best way to do it? Please suggest ASAP.
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2018 02:27 AM
Hi Vishnu,
Modify the UI action "request approval" and check for the risk value. If it is not filled then return false. SOmething like below:
function checkRiskValue(){
var riskValue = g_form.getValue('risk');
if(!riskValue){
alert("please take risk assessment to proceed forward");
return false;
}
}
Regards
Pavan
Mark Correct /Helpful /Like based on the effect of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-02-2018 02:36 AM
Hi Vishnu,
Update the Request Approval UI action: try below code
if (typeof window == 'undefined')
updateAndRedirect();
function updateAndRedirect() {
var grAss = new GlideAggregate('task_assessment');
grAss.addQuery('task',current.sys_id);
grAss.addAggregate('COUNT');
grAss.query();
if(grAss.next()){
if(parseInt(grAss.getAggregate('COUNT')) > 0)
current.update();
else
gs.addInfoMessage('Please fill out the Risk assessment');
}
action.setRedirectURL(current);
}
Regards
Pavan
Mark Correct /Helpful /Like based on the effect of response.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-18-2018 12:25 AM
Hi,
I need one more thing here,
I just want to open the risk assessment form with the message & after the risk assessment I want to open risk calculation
How to do that?
Please help me..