Example #1
0
 public String getActionBarSubTitleBySurvey(Survey survey) {
   Program program = survey.getProgram();
   if (program.getName() != null) {
     return program.getName();
   }
   return "";
 }
 /**
  * Returns a javascript that be inyected into the webview
  *
  * @return
  */
 public String getEntryAsJS() {
   return String.format(
       JAVASCRIPT_ADD_DATA,
       sent,
       expected,
       program.getName(),
       program.getUid(),
       getDateAsString());
 }