
Community Alums
Not applicable
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 02-20-2019 02:05 AM
Hi Guys,
I have seen people asking how to call a Script Include function in a report or simply in a background script without creating an object of class. This is quite an easy task, so I thought about writing a short article on this.
- Go to the 'Script Include' section in Application Navigator and click 'New'
a
- The name of the Script Include should be the function name you are trying to create
- A class is created automatically in the script section, remove the entire OOB code and write your own function declaration (remember to select 'Client Callable' checkbox)
- After you write the function call the function in Report/Background script/Business Rules like screenshot below
javascript:getHRs();
Let me know if you guys see any issues.
Cheers,
Hardit Singh
Labels:
- 1,606 Views
Comments

michaelmcaliste
Kilo Guru
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
02-26-2019
10:33 PM
Very helpful, you can also use the javascript:functionName(); notation in other places such as setting things like the default value for catalog variables etc.

Community Alums
Not applicable
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
02-27-2019
08:00 AM
Noted! Thank you!