data lookup rules are not working on Change
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-25-2018 11:32 PM
Data lookup rules which are set on the incident form in the Service Center are not working in service portal in On change
The changes are getting reflected only on On Submit
Can anyone help on this?
Thanks,,
- Labels:
-
Service Portal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2018 12:23 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2018 12:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2018 03:13 AM
Hey
There is a current problem for this:
Data Lookup definitions do not function in Service Portal
It is currently not clear what release this will be implemented.
The suggested workaround would be to use custom client script to meet the requirement until a fix is delivered.
to achieve this using script create ui script and write that code: and call it in on change client script :
UI Script:-
function calculate_priority()
{
var imp=g_form.getValue('impact');
var urg=g_form.getValue('urgency');
if(imp ==1 && urg ==1){
g_form.setValue('priority',1);
}
else if(imp==1 && urg==2){
g_form.setValue('priority',2);
}
else if(imp==1 && urg==3){
g_form.setValue('priority',3);
}
else if(imp==2 && urg==1){
g_form.setValue('priority',2);
}
else if(imp==2 && urg==2){
g_form.setValue('priority',3);
}
else if(imp==2 && urg==3){
g_form.setValue('priority',4);
}
else if(imp==3 && urg==1)
{
g_form.setValue('priority',3);
}
else if(imp==3 && urg==2)
{
g_form.setValue('priority',4);
}
else if(imp==3 && urg==3)
{
g_form.setValue('priority',5);
}
}
On chnage client script:-
select field impact. and paste that code in script part
function onChange(control, oldValue, newValue, isLoading, isTemplate) {
if (isLoading || newValue === '') {
return;
}
calculate_priority()
}
HOPE THIS HELPFUL!!!!! MARK CORRECT OR HELPFUL.
Thanks,
Mohammed Iqbal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-26-2018 09:15 AM
This looks fine and working good --- buts fails in one scenario while we change urgency (as every time impact cannot be the on change) field