private boolean populateMeetingAttendeeData() { GoalPlanningVo voGoalPlanning = form.getLocalContext().getGoalPlanningVo(); GoalPlanningMeetingAttendeeVoCollection collMeetingAttendeeVo = new GoalPlanningMeetingAttendeeVoCollection(); DynamicGridRowCollection rows = form.ctnDetails().dyngrdInvitees().getRows(); for(int i=0; i< rows.size(); i++) { GoalPlanningMeetingAttendeeVo voGoalPlanningMeetingAttendee = new GoalPlanningMeetingAttendeeVo(); DynamicGridRow row = rows.get(i); if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() == null) { engine.showMessage("There is a entry missing in the invitees list please complete the entry to allow the record to be saved"); return true; } if (row.getCells().get( form.ctnDetails().dyngrdInvitees().getColumns() .getByIdentifier(INVITEE_COLUMN)).getIdentifier() .equals(HcpLiteVo.class)) { if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null) voGoalPlanningMeetingAttendee.setHcp((HcpLiteVo) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue()); } else if(row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getIdentifier().equals(DynamicCellType.STRING)) { if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue() != null) voGoalPlanningMeetingAttendee.setFamilyMember((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(INVITEE_COLUMN)).getValue()); } if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue() != null) voGoalPlanningMeetingAttendee.setStatus((AttendanceStatus) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(STATUS_COLUMN)).getValue()); else { engine.showMessage("Status data has not been provided. Please provide a status for an Invitee before proceeding."); return true; } if (row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue() != null) voGoalPlanningMeetingAttendee.setNote((String) row.getCells().get(form.ctnDetails().dyngrdInvitees().getColumns().getByIdentifier(NOTE_COLUMN)).getValue()); collMeetingAttendeeVo.add(voGoalPlanningMeetingAttendee); } voGoalPlanning.setInvitees(collMeetingAttendeeVo); form.getLocalContext().setGoalPlanningVo(voGoalPlanning); return false; }