Based on user request in zenpage, i am running the method ConvertMDXtoJSON in background and loading the status in progressbar.
D ..%RunBackgroundMethod("ConvertMDXtoJSON",MDX)From this background method ConvertMDXtoJSON() i want to return the value(sjson) and store it into session.
How can i do this?
Below is my code.
ClassMethod ConvertMDXtoJSON(pMDX) As %String
{
Try
{
Do ..%SetBackgroundMethodStatus("Started",0)
set Params = ""
set pStatus = $$$OK
set RS = ##class(MS.Deepsee.MDX2JSON.ResultSet).%New()
set pStatus = RS.%PrepareMDX(pMDX)

