Advertisement
psi_mmobile

Untitled

Feb 20th, 2020
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.70 KB | None | 0 0
  1.     public void addBadgePopupFetchListener(PopupFetchEvent popupFetchEvent) {
  2.         AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
  3.         Row selectedReport = am.getModuleParamsView1().getCurrentRow();
  4.         String contextPoiName = ContextBean.getCurrent().getLastSelectedPoi().getName();
  5.         Integer contextPoiId = ContextBean.getCurrent().getLastSelectedPoiId();
  6.  
  7.         if (null != contextPoiName && null != contextPoiId) {
  8.             selectedReport.setAttribute("PoiId", contextPoiId);
  9.             selectedReport.setAttribute("PoiName", contextPoiName);
  10.         }
  11.  
  12.         String contextPersonName =
  13.             ContextBean.getCurrent().getSelectedPerson().getLastName() + " " + ContextBean.getCurrent().getSelectedPerson().getFirstName();
  14.         Integer contextPersonId = ContextBean.getCurrent().getSelectedPersonId();
  15.  
  16.         if (null != contextPersonName && null != contextPersonId) {
  17.             selectedReport.setAttribute("PersonId", contextPersonId);
  18.             selectedReport.setAttribute("PersonName", contextPersonName);
  19.         }
  20.  
  21.         RichInputListOfValues poiNameComboBox = (RichInputListOfValues)JSFUtils.findComponentInRoot("poiNameId");
  22.         if (null != poiNameComboBox) {
  23.             poiNameComboBox.resetValue();
  24.             AdfFacesContext.getCurrentInstance().addPartialTarget(poiNameComboBox);
  25.         }
  26.         RichInputListOfValues personNameLovBox = (RichInputListOfValues)JSFUtils.findComponentInRoot("personNameId");
  27.         if (null != personNameLovBox) {
  28.             personNameLovBox.resetValue();
  29.             AdfFacesContext.getCurrentInstance().addPartialTarget(personNameLovBox);
  30.         }
  31.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement