Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-22-2023 05:04 AM
Tried replacing the Client controller as per the shared article but still not working
From This
function($rootScope,$location) {
/* widget controller */
var c = this;
$rootScope.$on('data_table.click', function(event,obj) {
console.log(obj);
var link = {};
link.sys_id = obj.sys_id;
link.table = obj.table;
link.id = c.data.page;
$location.search(link);
})
}
To This
function($rootScope,$location) {
/* widget controller */
var c = this;
$rootScope.$on('data_table.click', function(event,obj) {
console.log(obj);
var link = {};
link.sys_id = obj.sys_id;
link.table = obj.table;
link.id = c.data.page;
// $location.search(link);
if (c.options.page) {
var page = c.options.page;
}
if (!c.options.page) {
var page = "form";
}
location.search = '?id=' + page + '&table=' + link.table + '&sys_id=' + link.sys_id;
})
}