dhis2-devs team mailing list archive
-
dhis2-devs team
-
Mailing list archive
-
Message #04232
[Branch ~dhis2-devs-core/dhis2/trunk] Rev 1401: (GIS) Organisation unit filter implemented.
------------------------------------------------------------
revno: 1401
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: trunk
timestamp: Fri 2010-02-05 16:12:26 +0100
message:
(GIS) Organisation unit filter implemented.
Blueprint: https://blueprints.launchpad.net/dhis2/+spec/gis-orgunit-filter
modified:
dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Mapping.js
--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk
Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription.
=== modified file 'dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Mapping.js'
--- dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Mapping.js 2010-02-03 10:18:27 +0000
+++ dhis-2/dhis-web/dhis-web-mapping/src/main/webapp/dhis-web-mapping/resources/mapfish/widgets/geostat/Mapping.js 2010-02-05 15:12:26 +0000
@@ -143,6 +143,8 @@
},
newUrl : false,
+
+
/**
* Method: initComponent
@@ -211,6 +213,8 @@
Ext.getCmp('grid_gp').getStore().baseParams = { mapLayerPath: mlp, format: 'json' };
Ext.getCmp('grid_gp').getStore().reload();
+
+ Ext.getCmp('filter_tf').enable();
this.classify(false);
},
@@ -218,8 +222,26 @@
}
}
},
-
- { html: '<br>' },
+
+ {
+ xtype: 'textfield',
+ id: 'filter_tf',
+ labelStyle: AA_LIGHT,
+ fieldLabel: 'Filter',
+ labelSeparator: MENU_LABELSEPARATOR,
+ isFormField: true,
+ width: combo_width,
+ enableKeyEvents: true,
+ disabled: true,
+ listeners: {
+ 'keyup': {
+ fn: function() {
+ var p = Ext.getCmp('filter_tf').getValue();
+ gridStore.filter('organisationUnit', p, true, false);
+ }
+ }
+ }
+ },
{
xtype: 'grid',