hr undefined, maybe missing global qualifier
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-12-2017 12:38 AM
Hi There,
i'm getting this error after upgrade to Istanbul , when view a incident ,this error showing up on top. I've tried steps in WorkflowScheduler undefined, maybe missing global qualifier but the error still there. Please help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-18-2017 10:51 PM
Hi Sarasaamani,
Easy fix. Add global. in front of your hr instantiation in your script.
ex:
var wf = new global.hr();
Regards
Dinesh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2017 12:53 AM
Hi Dinesh,
you mean modify this script? which line i should change?
if (current.sys_scope.getDisplayValue() == 'Global') current.script = "var ws = new WorkflowScheduler();
ws.run();";
else current.script = "var ws = new global.WorkflowScheduler();
ws.run();";