Pass table record to webform and redirect menuitem in enterprise portal 4.0
WebLink webLink = new WebLink();
WebUrlMenuFunction wmf;
str url;
InventDim inventdim1;
;
wmf = new WebUrlMenuFunction(weburlitemstr(ItemOnHand));
webLink.menufunction(wmf);
select firstonly inventdim1 where inventdim1.InventLocationId == InventLocationId.valueStr()
;
webLink.record(inventdim1);
url = webLink.url(false);
webSession().redirectURL(url);