~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/dhis-web/dhis-web-maintenance/dhis-web-maintenance-dataadmin/src/main/webapp/dhis-web-maintenance-dataadmin/javascript/resourceTable.js

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
function generateResourceTable()
 
3
{
 
4
    var organisationUnit = document.getElementById( "organisationUnit" ).checked;
 
5
    var groupSet = document.getElementById( "groupSet" ).checked;
 
6
    var categoryOptionComboName = document.getElementById( "categoryOptionComboName" ).checked;
 
7
    
 
8
    if ( organisationUnit || groupSet || categoryOptionComboName )
 
9
    {
 
10
        setMessage( i18n_generating_resource_tables );
 
11
            
 
12
        var params = "organisationUnit=" + organisationUnit + 
 
13
            "&groupSet=" + groupSet + 
 
14
            "&categoryOptionComboName=" + categoryOptionComboName;
 
15
            
 
16
        var url = "generateResourceTable.action";
 
17
        
 
18
        var request = new Request();
 
19
        request.sendAsPost( params );
 
20
        request.setCallbackSuccess( generateResourceTableReceived );
 
21
        request.send( url );
 
22
    }
 
23
    else
 
24
    {
 
25
        setMessage( i18n_select_options );
 
26
    }
 
27
}
 
28
 
 
29
function generateResourceTableReceived( messageElement )
 
30
{
 
31
    setMessage( i18n_resource_tables_generated );
 
32
}