Advertisement
psi_mmobile

Untitled

Feb 20th, 2020
252
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.22 KB | None | 0 0
  1. public void poiNameDialogListener(DialogEvent dialogEvent) {
  2. DCIteratorBinding poiCategoryIterator = ADFUtils.findIterator("PoiListAdGeView1Iterator");
  3. Row currentRow = poiCategoryIterator.getCurrentRow();
  4. if (dialogEvent.getOutcome() == DialogEvent.Outcome.ok && currentRow != null) {
  5. String poiName = (String)currentRow.getAttribute("PoiName");
  6. Integer poiId = (Integer)currentRow.getAttribute("PoiId");
  7. if (null != poiName) {
  8. AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
  9. Row selectedReport = am.getModuleParamsView1().getCurrentRow();
  10. if (null != selectedReport) {
  11. selectedReport.setAttribute("PoiId", poiId);
  12. selectedReport.setAttribute("PoiName", poiName);
  13. }
  14. }
  15. RichInputListOfValues poiNameComboBox = (RichInputListOfValues)JSFUtils.findComponentInRoot("poiNameId");
  16. if (null != poiNameComboBox) {
  17. poiNameComboBox.resetValue();
  18. AdfFacesContext.getCurrentInstance().addPartialTarget(poiNameComboBox);
  19. }
  20. }
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement