Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void addBadgePopupFetchListener(PopupFetchEvent popupFetchEvent) {
- AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
- Row selectedReport = am.getModuleParamsView1().getCurrentRow();
- String contextPoiName = ContextBean.getCurrent().getLastSelectedPoi().getName();
- Integer contextPoiId = ContextBean.getCurrent().getLastSelectedPoiId();
- if (null != contextPoiName && null != contextPoiId) {
- selectedReport.setAttribute("PoiId", contextPoiId);
- selectedReport.setAttribute("PoiName", contextPoiName);
- }
- String contextPersonName =
- ContextBean.getCurrent().getSelectedPerson().getLastName() + " " + ContextBean.getCurrent().getSelectedPerson().getFirstName();
- Integer contextPersonId = ContextBean.getCurrent().getSelectedPersonId();
- if (null != contextPersonName && null != contextPersonId) {
- selectedReport.setAttribute("PersonId", contextPersonId);
- selectedReport.setAttribute("PersonName", contextPersonName);
- }
- RichInputListOfValues poiNameComboBox = (RichInputListOfValues)JSFUtils.findComponentInRoot("poiNameId");
- if (null != poiNameComboBox) {
- poiNameComboBox.resetValue();
- AdfFacesContext.getCurrentInstance().addPartialTarget(poiNameComboBox);
- }
- RichInputListOfValues personNameLovBox = (RichInputListOfValues)JSFUtils.findComponentInRoot("personNameId");
- if (null != personNameLovBox) {
- personNameLovBox.resetValue();
- AdfFacesContext.getCurrentInstance().addPartialTarget(personNameLovBox);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement