Advertisement
psi_mmobile

Untitled

Sep 17th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. public Row findPoiRowByKey() {
  2. Integer contextBeanPoiId = ContextBean.getCurrent().getSelectedPoiId();
  3. Key poiRowKey = new Key(new Object[] { contextBeanPoiId });
  4. AppModuleImpl am = (AppModuleImpl)ADFUtils.getApplicationModuleForDataControl("AppModuleDataControl");
  5. ViewObject vo = am.getEditPoiView1();
  6. RowSetIterator rsi = vo.createRowSetIterator(null);
  7. Row poiRow = rsi.findByKey(poiRowKey, 1)[0];
  8. if (null != poiRow) {
  9. return poiRow;
  10. } else {
  11. return null;
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement