- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2016 04:44 AM
i have one widget on one page. what is the life cycle of that widget when page loads?
does server script gets executed first? then controller?
if i set data object with something on server script and if i directly use it on HTML template, will it work?
is there any documentaion on spUtil? and snServiceWatcher? whould like to know more about those services/factory.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2016 11:12 AM
Yes, server script loads first and then controller. If all you're doing is loading data from server you can accomplish all of that in the server script by populating "data" and then you don't need a controller at all.
The documentation on most methods is in the editor... meaning as you type it should provide the methods, properties, and descriptions. Do you mean the snRecordWatcher? I'm working on a record watcher tutorial launching this week.... keep checking serviceportal.ioi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-06-2016 11:12 AM
Yes, server script loads first and then controller. If all you're doing is loading data from server you can accomplish all of that in the server script by populating "data" and then you don't need a controller at all.
The documentation on most methods is in the editor... meaning as you type it should provide the methods, properties, and descriptions. Do you mean the snRecordWatcher? I'm working on a record watcher tutorial launching this week.... keep checking serviceportal.ioi
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-07-2016 04:47 AM
Thank you. i will be wating for turtorials.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-08-2016 03:54 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-26-2017 10:54 PM
This may help,
snRecordWatcher.initList("table","query");
Example:
Client controller:
function($scope,snRecordWatcher)
{
var c=this;
snRecordWatcher.initList("incident","sys_id="+c.data.sys_id);
}
server script:
data.sys_id= $sp.getParameter('sys_id');