Indeed I hadn't added that to my code before. (connectionUpdated)
I've tried it this way:
on_connection_updated <- function(hostname, hint) {
# make sure we have an observer
observer <- getOption("connectionObserver")
if (!is.null(observer))
observer$connectionUpdated(type = "Viya",
host = hostname,
hint = hint)
}
I didn't see any change, no bugs, auto refreshing nor what I want, which is the preview table.
I still think it is something on the previewObject() part, but I can't figure out whatsoever since its otuput is supposed to have is a data.frame so, no reason not to a have a preview.
I am really confused