Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

Script include Extension question

tahnalos
Kilo Sage

I want to ask some general questions regarding extending a pre-existing Script include.  As an example, please refer to the hr_PortalUtil Script include.

 

1) Given that this script include is in the Employee Center Core scope, if I extend it, can I use a custom scope that I am using to build my own app?  Or does it strictly have to be Employee Center Core?

 

2) The initialize () function of the hr_PortalUtil has some scripting in it even has a parameter passed through to the initialize function itself.  If I extend hr_PortalUtil, do I need to copy the same initialize function with the scripting involved?

 

3) There are some function definitions that are outside the main Prototype function (see hr_PortalUtil.getActualCaseRecord for an example).  There are also some variable definitions that are also outside the main Prototype function.   Are these also accessible in an extended Script include?

 

I have extended other script includes before but this one is quite unusual to the point I am asking these questions.  Thanks for your help.

0 REPLIES 0