- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 02:54 PM
how to add two functions from script include in a reference qualifier
SeatUtils is the script include and getbcp3() is a function. i have another function getbcp2()
have to call both in single reference qualifier
tried javascript:new SeatUtils().getbcp3()+new SeatUtils().getbcp2(); but not working fine
Solved! Go to Solution.
- Labels:
-
Facilities Service Management

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 04:25 AM
use this to call function inside script include
eg this.functionName()
I have two function and want to merger both result into third function it will be used like below.
get1: function(){
return 'hello';
},
get2: function(){
return 'harsh';
}
final: function(){
return this.get1()+','+this.get2();
}
If my answer helped you, kindly mark it as correct and helpful.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 10:43 PM
Hi,
Is it working with single function?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 11:00 PM
yes... when we call both as single function its working

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 11:15 PM
Hi,
Then your reference qualifier should work.
Try adding scope before script include name.
javascript: new global.SeatUtils().getbcp3() + new global.SeatUtils().getbcp2();
Note - Replace global with your scope name and try.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2020 11:20 PM
Hi,
- Check that the script include is available to all scopes (it's in the upper right of the form)
- address your script include with the scope name prefix. E.g. javascript:new myscope.myScriptInclude().myFunction()
Let me know if this helps.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 03:33 AM
- i have changed the application scope.. Still it not working