
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2016 10:42 AM
Well this seems a bit odd...
HTML Template (the important info)
<tr ng-repeat="emergency in data.emergencies" id="{{::emergency.locationSysID}}">
<td ng-if="::data.userLocation == emergency.locationSysID">
<a ng-click="openSiteInfo('{{::data.userLocation}}', '{{emergency.locationSysID}}')">Test Link</a>
</td>
</tr>
Client Script (the important info)
function($scope)
{
$scope.openSiteInfo = function(val, userLocationSysID)
{
console.debug("val: " + val);
console.debug("userLocationSysID: " + userLocationSysID);
};
}
The debug log:
The inspected element:
So what am I missing that the passed values show up perfectly when I inspect the page, but the values debugged are string literals??
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-03-2016 11:40 AM
Hi David,
You should just write those as JS like:
ng-click="openSiteInfo(data.userLocation, emergency.locationSysID)"

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2016 04:11 AM
Nevermind... I see it now. Client script, line #14. Should read: $scope.data.Instance_URL
I brainfarted
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-04-2016 04:14 AM
Hello guys,
One question related to this widget i am using widget in service catalog and instead of any button in html template can i call the server script of the widget from on submit client script??
Thanks,
Mayur