Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- protected int createRemoteUnit(AppModuleImpl am) {
- ViewObject vo = am.getRemoteUnitView1();
- Row row = vo.createRow();
- row.setNewRowState(Row.STATUS_INITIALIZED);
- row.setAttribute("AdminCenterId", UserBean.getCurrent().getAdminCenterId());
- vo.insertRow(row);
- am.getTransaction().postChanges();
- log.debug("RemoteUnitId? : " + row.getAttribute("RemoteUnitId"));
- int remoteUnitId = (Integer)row.getAttribute("RemoteUnitId");
- return remoteUnitId;
- } // so far so good, pravi se nov remote unit
- v createVehicle(AppModuleImpl am, ViewObject catVo, int remoteUnitId) se set-va -> vehicleRow.setAttribute("RemoteUnitId", remoteUnitId);
- So far so good, obache...
- v tab-a za remote unit se polzva same view, koeto se polzva za create. Pri syzdavaneto na remote unit-a se create-va row, ama ne se set-va da e current. Possible flaw?
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement