Question
Con Skordis · Jul 1

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
00
1 0 1 52
Log in or sign up to continue

It's not intuitive, but it works.

ifexpression='%report.PageBefore("Graph",1)=1'