Question
· Jul 1, 2021

ifexpression syntax

What is the correct syntax when passing values on a zen method after ifexpression?

 

  <pagebreak ifexpression="%report.PageBefore('Graph',1)=1"></pagebreak>  ????

.....

Method PageBefore(Table As %String = "", As %Integer = 0) As %String [ ZenMethod ]
{
if Table="" quit 0
if {set x=+$g(^||Page("PageFlag","Table",p))}
else {set x=+$g(^||Page("PageFlag","Table"))}
if (x=1)||(x=3) quit 1
quit 0
}

This gives me an error "<SYNTAX>zIfCommon+2^%ZEN.Report.Display.controller.1"

 

I have swapped the double quotes to single but it still errors

Product version: Caché 2018.1
Discussion (1)1
Log in or sign up to continue