what is new SNC.PlannedTaskAPI();
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2016 07:02 AM
Hi,
Can anyone explain what is "new SNC.PlannedTaskAPI();". I could not find it in script includes. Please help
Thanks

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-27-2016 09:36 AM
Its something that we don't have access too. If you don't belive me you can install codeSearch or Developer Search from the share site and search for it all day long. You wont find it. I had the same questions and have already been down the road of...us just not having access.
Corbett Brasington, PMP, CSM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-01-2016 09:31 PM
If this answered your question please mark answered and close the thread. Have a great day!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2016 06:36 PM
moulik SNC.PlannedTaskAPI is a Java API.
Through our Rhino engine we can expose Java APIs to JavaScript layer and those APIs are typically called with SNC.<API_NAME>
PlannedTaskAPI is the core of Project Management API. Our recalculation logic for Projects reside in Java layer and they are invoked through SNC.PlannedTaskAPI
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2016 08:00 PM
I am pretty sure this means you can invoke and call SNC.PlannedTask() it but you cannot edit or view the code in anyway correct Arun? If you want to see everything associated with that object or the functions that are a part of it you can use this....
You can use Object.getOwnPropertyNames()
to get all properties that belong to an object, whether enumerable or not. For example:
console.log(Object.getOwnPropertyNames(Math)); //-> ["E", "LN10", "LN2", "LOG2E", "LOG10E", "PI", ...etc ]
You can then use filter()
to obtain only the methods:
console.log(Object.getOwnPropertyNames(Math).filter(function (p) { return typeof Math[p] === 'function'; })); //-> ["random", "abs", "acos", "asin", "atan", "ceil", "cos", "exp", ...etc ]
This was taken from How to display all methods of an object in Javascript? - Stack Overflow if you want to see it further, they use the Math class in this example.