luca.santaniello
3 Dec 2009, 12:15 AM
HI,
I have this JsonStore and this Template
store = new Ext.data.JsonStore({
fields: [
{name: 'nome', type: 'string'}
]
});
templateRow = new Ext.Template(
'<p><b>Mappa:</b> {nome}<br>'
);
I use 2 Component for loading my grid...
My json string is :
bbox->object
corrente->boolean
layers->array object
name->string
For example:
[{"bbox":{"XMax":19.0,"XMin":10.5,"YMax":42.7,"YMin":38.7,"srs":""},"corrente":false,"layers":[{"baseLayer":true,"bbox":null,"description":"","label":"Comuni","name":"TestPG:carto_limiti_comunali","server":"http://10.0.0.190:8080/geoserver/wms?","srs":"","style":"","visible":true},{"baseLayer":false,"bbox":null,"description":"","label":"Aereoporti","name":"TestPG:carto_aereoporti","server":"http://10.0.0.190:8080/geoserver/wms?","srs":"","style":"","visible":true}],"nome":"map"},{"bbox":{"XMax":19.086215820312,"XMin":10.593784179686,"YMax":43.148046875,"YMin":38.401953125,"srs":""},"corrente":true,"layers":[{"baseLayer":true,"bbox":null,"description":"","label":"Comuni","name":"TestPG:carto_limiti_comunali","server":"http://10.0.0.190:8080/geoserver/wms?","srs":"","style":"","visible":true},{"baseLayer":false,"bbox":null,"description":"","label":"Aereoporti","name":"TestPG:carto_aereoporti","server":"http://10.0.0.190:8080/geoserver/wms?","srs":"","style":"","visible":true}],"nome":"LUCA"}]
How can I add to my JsonStore and my Template attributes of object bbox?
I try
[CODE]
store = new Ext.data.JsonStore({
fields: [
{name: 'nome', type: 'string'},
{name: 'bbox', type: 'object'},
]
});
[CODE]
but don't run
Help me please
Luca
I have this JsonStore and this Template
store = new Ext.data.JsonStore({
fields: [
{name: 'nome', type: 'string'}
]
});
templateRow = new Ext.Template(
'<p><b>Mappa:</b> {nome}<br>'
);
I use 2 Component for loading my grid...
My json string is :
bbox->object
corrente->boolean
layers->array object
name->string
For example:
[{"bbox":{"XMax":19.0,"XMin":10.5,"YMax":42.7,"YMin":38.7,"srs":""},"corrente":false,"layers":[{"baseLayer":true,"bbox":null,"description":"","label":"Comuni","name":"TestPG:carto_limiti_comunali","server":"http://10.0.0.190:8080/geoserver/wms?","srs":"","style":"","visible":true},{"baseLayer":false,"bbox":null,"description":"","label":"Aereoporti","name":"TestPG:carto_aereoporti","server":"http://10.0.0.190:8080/geoserver/wms?","srs":"","style":"","visible":true}],"nome":"map"},{"bbox":{"XMax":19.086215820312,"XMin":10.593784179686,"YMax":43.148046875,"YMin":38.401953125,"srs":""},"corrente":true,"layers":[{"baseLayer":true,"bbox":null,"description":"","label":"Comuni","name":"TestPG:carto_limiti_comunali","server":"http://10.0.0.190:8080/geoserver/wms?","srs":"","style":"","visible":true},{"baseLayer":false,"bbox":null,"description":"","label":"Aereoporti","name":"TestPG:carto_aereoporti","server":"http://10.0.0.190:8080/geoserver/wms?","srs":"","style":"","visible":true}],"nome":"LUCA"}]
How can I add to my JsonStore and my Template attributes of object bbox?
I try
[CODE]
store = new Ext.data.JsonStore({
fields: [
{name: 'nome', type: 'string'},
{name: 'bbox', type: 'object'},
]
});
[CODE]
but don't run
Help me please
Luca