- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 02:41 AM
Design pattern of writing a script include?
Solved! Go to Solution.
- Labels:
-
Personal Developer Instance

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 05:16 AM
Hi Mohd,
I recommend you take a look at TechNow Episode 6 where Andrew and I take a dive in to script includes, their options, their function, passing information in and out etc.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 05:16 AM
Hi Mohd,
I recommend you take a look at TechNow Episode 6 where Andrew and I take a dive in to script includes, their options, their function, passing information in and out etc.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 05:32 AM
HI,
Please check below links as well.
passing property to script include and getting back sys ids script help?
Calling Script Include in Business rule
How to call a script include from Buiness rule
Thank you,
Ashutosh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 05:54 AM
A script include defines a class with one or more functions:
var myCustomClass = Class.create();
myCustomClass.prototype = {
initialize: function() {
},
myCustomFunction: function () {
...
}
Calling a function defined in a script include:
var myVariable = new myCustomClass();
myCustomClass.myCustomFunction();

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-12-2017 06:22 AM
The prototype method is not always required or desired. It's very common to do it that way, but not always the necessary format. There are a few different formats you can use when defining script includes.
Again, all this is in episode 6 - TechNow Episode List