如何根据收货数量*单价同时计算金额字段中的值,而无需导航到下一页。
我正在尝试根据 EBS 的 iProcurement 模块中的(收据数量 * 单价)计算金额。我目前已经在 ProcessformRequest 中编写了它的计算代码,但它只有在我按下 Next 按钮并返回查看金额时才有效。
OAApplicationModule am = (OAApplicationModule)pageContext.getRootApplicationModule();
OAViewObject vo = (OAViewObject)am.findViewObject("ReceiveMyItemsVO");
for (XxuaReceiveMyItemsVORowImpl voRow = (XxuaReceiveMyItemsVORowImpl)vo.first(); voRow != null; voRow = (XxuaReceiveMyItemsVORowImpl)vo.next()) {
// get info from current line
oracle.jbo.domain.Number xup = voRow.getXxuaUnitPrice();
oracle.jbo.domain.Number rq = voRow.getReceiptQuantity();
oracle.jbo.domain.Number xa = null;
xa = xup.multiply (rq);
}
现在我的要求是,只要我给出收据数量并按下 tab ,就应该计算金额而不转到下一页。是否有任何更改事件可用于执行此操作。