- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 09:18 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 11:00 AM
You can call another script include using gs.include('script include name'). Then you have access to functions present inside that script include. This is to avoid unnecessary duplication of code.
Thanks,
Kushal
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 10:55 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-14-2020 02:06 PM
Hello Aman,
Still i did not understand that how it is different from initializing Script Includes ? Can you please explain the use of gs.include(), using a simple example.
I see below in one of the BR; did not get if what difference the first line made here:
gs.include("DeliveryPlan");
var plan = new DeliveryPlan(current);
plan.initTasks();
Thanks,
Rahul

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 10:58 AM
Hi,
gs.include() allows you to call a script include and use the functions within that script include. This means that you do not have to copy the functions into your current script include, but rather than call them directly.
Search through the script include and see if there are functions that are called which are not exist in the current script include. Then go to the script include which is called with gs.include() method to see what it is doing.
Check below thread also:
Mark Correct if it answers your question.
Thanks,
Ravi

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-25-2018 11:00 AM
You can call another script include using gs.include('script include name'). Then you have access to functions present inside that script include. This is to avoid unnecessary duplication of code.
Thanks,
Kushal