New 1

download New 1

If you can't read please download the document

Transcript of New 1

Partial Page Rendering OAMessageChoiceBean currTypeBean = (OAMessageChoiceBean)createWebBean(pageContex t,MESSAGE_CHOICE_BEAN); currTypeBean.setPickListViewObjectDefinitionName("xxavt.oracle.apps.i cx.lov.server.XXAVTCurrenciesVO"); currTypeBean.setListDisplayAttribute("CurrencyCode"); currTypeBean.setListValueAttribute("CurrencyCode"); currTypeBean.setID("xxavtCurrencyCode"); //currTypeBean.setLabel("Supplier Type"); //currTypeBean.setViewUsageName("SupplierVO"); currTypeBean.setPickListCacheEnabled(false); currTypeBean.setViewAttributeName("CurrencyCode"); tableBean.addIndexedChild(10,currTypeBean); //.addIndexedChild(currTy peBean); //Fire Partial Action \*TYPE(1) *Hashtable params = new Hashtable(1); params.put("eventParam", pageContext.getRootRegionCode()); Hashtable paramsWithBinds = new Hashtable(2); paramsWithBinds.put ("param1", new OADataBoundValueFireActionURL(cur rTypeBean, "${oa.current.xxavtCurrencyCode}")); paramsWithBinds.put ("param2", new OADataBoundValueFireActionURL(cur rTypeBean, OAWebBeanConstants.EVENT_SOURCE_ROW_REFERENCE)); FireAction fireAction = OAWebBeanUtils.getFireActionForSubmit(webBea n, "currencyCodeChanged", params, paramsWithBinds,false, false); currTypeBean.setAttributeValue(PRIMARY_CLIENT_ACTION_ATTR,fireAction ); if (pageContext.getParameter("ContinueButton") != null) { OAException message1 = new OAException("El empleado ya tiene una sol icitud futura de Vacaciones. No se permite otra."); pageContext.putDialogMessage(message1); .... String firedEventName = String.valueOf(pageContext.getParameter(EVENT_PARAM));