- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-09-2020 03:03 PM
Hi,
I have built a widget that is essentially just a lookup to a table. That is working. Now I have been tasked to add it to a catalog item form as a UI macro.
What I need to do is pass the value from the widget to a catalog item variable. If this is possible, how would I do it?
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-14-2020 10:27 AM
I figured it out. I added a function to watch if the field value changes.
function($scope) {
/* widget controller */
var c = this;
$scope.$watch(function(){
$scope.page.g_form.setValue('terminated_user', c.data.user.value);
});
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2023 01:04 AM
Hello @Dazler ,
I'm not able to achieve it even after your suggestion.
Kindly help if I have to change something.