else if (pageContext.isLovEvent())
{ StHelper.handleLovEvent(pageContext, webBean); }
public static void handleLovEvent(OAPageContext pageContext,
OAWebBean webBean) { OAApplicationModule am = pageContext.getApplicationModule(webBean);String lovInputSourceId = pageContext.getLovInputSourceId();
String sourceParam = pageContext.getParameter(UIConstants.SOURCE_PARAM); java.util.Hashtable lovResults = pageContext.getLovResultsFromSession(sourceParam);
if ("CategoryName".equals(lovInputSourceId))
{ String taxRate = (String) lovResults.get("TaxRate"); //Return Item Id String itemDescription = (String) lovResults.get("ItemDescription"); //Return Item IdString rowReference =
pageContext.getParameter(OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE); Row row = am.findRowByRef(rowReference);row.setAttribute("TaxRate", taxRate);
row.setAttribute("ItemDescription", itemDescription); }
}
//此方法似乎对于HGrid中的LOV事件并不能取到相应的行