Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- v popupFetchListener
- DCIteratorBinding wbsTaskIterator = ADFUtils.findIterator("WbsTaskView1Iterator");
- if (null != wbsTaskIterator) {
- Row currentWbsTask = wbsTaskIterator.getCurrentRow();
- if (null != currentWbsTask) {
- Integer objectCodeId = null;
- objectCodeId = (Integer)currentWbsTask.getAttribute("ObjectCodeId");
- if (null == objectCodeId) {
- currentWbsTask.setAttribute("ObjectCodeId", 1);
- }
- }
- }
- v dialogListener za NO
- if (dialogEvent.getOutcome().equals(DialogEvent.Outcome.no)) {
- try {
- DCIteratorBinding wbsTaskIterator = ADFUtils.findIterator("WbsTaskView1Iterator");
- if (null != wbsTaskIterator) {
- Row currentWbsTask = wbsTaskIterator.getCurrentRow();
- if (null != currentWbsTask) {
- Integer objectCodeId = null;
- objectCodeId = (Integer)currentWbsTask.getAttribute("ObjectCodeId");
- if (1 == objectCodeId) {
- currentWbsTask.setAttribute("ObjectCodeId", null);
- }
- }
- }
- } catch (Exception e) {
- log.error("Error while setting object code in wbs task management!", e);
- BuildixxUtils.addErrorMessage(JSFUtils.resolveExpressionAsString("Error while setting object code in wbs task management!"));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement