I'm not sure there's a variable that does what you're asking, but it's easy enough to implement yourself. Make a boolean parameter, we'll call it isServer. In iReport, set its default value expression to "new Boolean(false)" and uncheck "use as a prompt" Then use the "$P{isServer}.booleanValue() ? repo-location : url-location". On the server, depending on how you run the report, add the isServer parameter to the parameter map before running the report ie map.add("isServer", new Boolean(true)) .
Post Edited by ctkrm at 11/23/2009 20:27