=== modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-07-06 03:53:08 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/org/hisp/dhis/caseentry/i18n_module.properties 2012-07-09 03:38:52 +0000 @@ -107,7 +107,7 @@ run_validation=Run validation please_select_village=Please select village select_sorting_attribute=Select a specfied attribute / ALL -no_result=No result +no_result_found=No result found hierachy_orgunit=Hierarchy organisation unit F=F M=M === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml 2012-07-06 09:59:36 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/resources/struts.xml 2012-07-09 03:38:52 +0000 @@ -331,6 +331,11 @@ /dhis-web-caseentry/records.vm + + + /dhis-web-caseentry/responsePrograms.vm + === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/report.js' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/report.js 2012-03-12 07:03:27 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/javascript/report.js 2012-07-09 03:38:52 +0000 @@ -1,10 +1,9 @@ isAjax = true; - function organisationUnitSelected( orgUnits, orgUnitNames ) { showLoader(); setInnerHTML( 'contentDiv','' ); - jQuery.getJSON( "getPrograms.action",{}, + jQuery.getJSON( "getReportPrograms.action",{}, function( json ) { setFieldValue( 'orgunitname', orgUnitNames[0] ); === modified file 'dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/report.vm' --- dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/report.vm 2012-06-07 04:23:40 +0000 +++ dhis-2/dhis-web/dhis-web-caseentry/src/main/webapp/dhis-web-caseentry/report.vm 2012-07-09 03:38:52 +0000 @@ -1,13 +1,11 @@ -#if( $programInstance.size() == 0 ) - $i18n.getString('no_result') -#else +#if( $programInstance && $programInstance.size() > 0 )
- #set( $mark = false ) - #foreach( $programInstance in $programInstances ) + #set( $mark = false ) + #foreach( $programInstance in $programInstances )
@@ -47,6 +45,8 @@
+#else +

$i18n.getString('no_result_found')

#end