Skip to content

Commit c4bb32c

Browse files
authored
Workaround for URL variables
1 parent 481a96e commit c4bb32c

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

MDX2JSON/REST.cls

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,15 @@ ClassMethod ExecuteAction(Cube As %String, Action As %String) As %Status
316316
/// See correspontding method from DeepSee.REST.v1.InfoServer
317317
ClassMethod WritePivotVariablesForCube(Cube As %String) As %Status
318318
{
319+
// Workaround of non-working passing URL variables in get requests
320+
if %request.Method = "POST" {
321+
set Cube = $$$R("Cube") // from the body of request
322+
} else {
323+
if (Cube = "") {
324+
return $$$ERROR("No Cube requested")
325+
}
326+
} // end of workaround
327+
319328
set Cube = $ZCONVERT($ZCONVERT(Cube,"I","URL") ,"I","UTF8")
320329
return ##class(MDX2JSON.Utils).WritePivotVariablesForCube(Cube)
321330
}

0 commit comments

Comments
 (0)