var a=_g().getWidgetByName("project").getValue();
var b=_g().getWidgetByName("room").getValue();
然后你的url直接配拼接
XXXX=write&project="+a+"&room="+b;
=======
var a = _g().getWidgetByName("projece").getValue();
var b = _g().getWidgetByName("room").getValue();
var url = "/webroot/decision/view/report?viewlet=a.cpt&op=write&projece=" + a + "&room=" + b ;