Hi,
I'm trying to pass a parameter from a form page to a report page and
have tried the following.
<form page>
var route =
this.getComponentById("comboRouteErrorMain");
var width = 800;
var height = 600;
var left = (screen.width - width)/2;
var top = (screen.height - height)/2;
var params = 'width='+width+', height='+height;
params += ', top='+top+', left='+left;
params += ', directories=no';
params += ', location=yes';
params += ', menubar=yes';
params += ', resizable=yes';
params += ', scrollbars=yes';
params += ', status=yes';
params += ', toolbar=no';
zenPage.launchPopupWindow(zenLink('BioRef.ReportingMonitorRouteErrors.cls')
+ '?route=' + route.value, 'Reporting Monitor Route Errors', 'params)
This seems to work since the page that pops up has the following URL.
http://localhost:57772/csp/brlzen/BioRef.ReportingMonitorRouteErrors.cls?route=10||1&$ZEN_POPUP=1
The report page has the following.
Property route As %ZEN.Datatype.string (ZENURL = "route");
<also tried>
Property route As %String (ZENURL = "route");
...
Method showRouteErrors() [ ZenMethod ]
{
s route=%request.Data("route")
s ^temp($h)=route
}
The method gets called and I get a null entry in ^temp.
Any ideas or if there is another way to do this?
w $zv
>Cache for Windows (x86-32) 2008.1 (Build 401) Tue Feb 26 2008 14:16:08 EST
IE. 6.0.2900.2180
FF 2.0.0.15
Thanks,
Mike