- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago - last edited 3 weeks ago
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
When you extend a Script Include, the parent’s initialize () automatically runs unless you override it.
If you do NOT define initialize () in your child class → parent’s version runs as-is
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
When you extend a Script Include, the parent’s initialize () automatically runs unless you override it.
If you do NOT define initialize () in your child class → parent’s version runs as-is
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Hi Tanushree
Trying to set up the Application Cross Scope access and I'm not sure if I'm doing it correctly:
Source Scope: <my application>
Target Scope: Employee Center Core
Target Name: hr_PortalUtil
Operation: Execute API
Is this correct? Would the extended script include from our custom application access the hr_PortalUtil script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Thanks for your assistance. I will look into the work I am doing and see what else needs to be done.
